Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit 06883f8

Browse files
committed
fix nullable fields
1 parent f011964 commit 06883f8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/models/graph/types/person.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ module Types
1818
" is a battle that occurs at the end of Star Wars episode IV: A New Hope.",
1919
property: :birth_year
2020

21-
field :eyeColor, !types.String,
21+
field :eyeColor, types.String,
2222
"The eye color of this person. Will be \"unknown\" if not known or \"n/a\" if the person does not have an eye.",
2323
property: :eye_color
2424

2525
field :gender, !GenderEnum, "​The gender of this person."
26-
field :hairColor, !types.String,
26+
field :hairColor, types.String,
2727
"The hair color of this person. Will be \"unknown\" if not known or \"n/a\" if the person does not have hair.",
2828
property: :hair_color
2929

app/models/graph/types/starship.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module Types
3434
field :model, !types.String, "The model or official name of this starship. Such as \"T-65 X-wing\" or \"DS-1 Orbital Battle Station\"."
3535

3636
field :manufacturer, !types.String, "The manufacturer of this starship."
37-
field :costInCredits, !types.Float, "The cost of this starship new, in galactic credits", property: :cost_in_credits
37+
field :costInCredits, types.Float, "The cost of this starship new, in galactic credits", property: :cost_in_credits
3838
field :length, !types.Float, "The length of this starship in meters."
3939
field :crew, !types.String, "The number of personnel needed to run or pilot this starship."
4040
field :passengers, !types.String, "The number of non-essential people this starship can transport."

app/models/graph/types/vehicle.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Types
2020
field :model, !types.String, "The model or official name of this vehicle. Such as \"All-Terrain Attack Transport\"."
2121

2222
field :manufacturer, !types.String, "The manufacturer of this vehicle."
23-
field :costInCredits, !types.Float, "The cost of this vehicle new, in galactic credits", property: :cost_in_credits
23+
field :costInCredits, types.Float, "The cost of this vehicle new, in galactic credits", property: :cost_in_credits
2424
field :length, !types.Float, "The length of this vehicle in meters."
2525
field :crew, !types.String, "The number of personnel needed to run or pilot this vehicle."
2626
field :passengers, !types.String, "The number of non-essential people this vehicle can transport."

0 commit comments

Comments
 (0)