File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8607,6 +8607,7 @@ components:
86078607 allOf :
86088608 - $ref : ' #/components/schemas/GenerationSummary'
86098609 readOnly : true
8610+ nullable : true
86108611 names :
86118612 type : array
86128613 items :
@@ -8638,7 +8639,6 @@ components:
86388639 required :
86398640 - id
86408641 - locations
8641- - main_generation
86428642 - name
86438643 - names
86448644 - pokedexes
Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ class RegionDetailSerializer(serializers.ModelSerializer):
605605 locations = LocationSummarySerializer (many = True , read_only = True , source = "location" )
606606 version_groups = serializers .SerializerMethodField ("get_region_version_groups" )
607607 pokedexes = PokedexSummarySerializer (many = True , read_only = True , source = "pokedex" )
608- main_generation = GenerationSummarySerializer (read_only = True , source = "generation" , allow_null = True )
608+ main_generation = GenerationSummarySerializer (read_only = True , source = "generation" )
609609
610610 class Meta :
611611 model = Region
You can’t perform that action at this time.
0 commit comments