Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 7ba22be

Browse files
committed
specify arrays in response objects
1 parent 40ceffa commit 7ba22be

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

public/swagger.yaml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -826,14 +826,25 @@ definitions:
826826
type: string
827827
description: Rotten Tomato score of film
828828
people:
829-
type: string
829+
type: array
830830
description: People found in film
831+
items:
832+
type: string
831833
species:
832-
type: string
834+
type: array
833835
description: Species found in film
836+
items:
837+
type: string
834838
locations:
835-
type: string
839+
type: array
836840
description: Locations found in film
841+
items:
842+
type: string
843+
vehicles:
844+
type: array
845+
description: Vehicles found in film
846+
items:
847+
type: string
837848
url:
838849
type: string
839850
description: URL of film
@@ -859,8 +870,10 @@ definitions:
859870
type: string
860871
description: Hair color of the person
861872
films:
862-
type: string
873+
type: array
863874
description: Array of films the person appears in
875+
items:
876+
type: string
864877
species:
865878
type: string
866879
description: Species the person belongs to
@@ -880,17 +893,21 @@ definitions:
880893
type: string
881894
description: Climate of location
882895
terrain:
883-
type: integer
896+
type: string
884897
description: Terrain type of location
885898
surface_water:
886899
type: string
887900
description: Percent of location covered in water
888901
residents:
889-
type: integer
902+
type: array
890903
description: Array of residents in location
904+
items:
905+
type: string
891906
films:
892-
type: string
893-
description: Climate of location
907+
type: array
908+
description: Array of films the location appears in
909+
items:
910+
type: string
894911
url:
895912
type: integer
896913
description: Individual URL of the location
@@ -913,11 +930,15 @@ definitions:
913930
type: string
914931
description: Hair color of the species
915932
people:
916-
type: string
933+
type: array
917934
description: People belonging to the species
935+
items:
936+
type: string
918937
films:
919-
type: string
938+
type: array
920939
description: Array of films the species appears in
940+
items:
941+
type: string
921942
url:
922943
type: string
923944
description: Unique url of the species

0 commit comments

Comments
 (0)