Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ EnumTypeDefinition createEnum(Map<String, Object> input) {
for (Map<String, Object> enumValue : enumValues) {

EnumValueDefinition.Builder enumValueDefinition = EnumValueDefinition.newEnumValueDefinition().name((String) enumValue.get("name"));
enumTypeDefinition.description(toDescription(input));
enumValueDefinition.description(toDescription(enumValue));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch


createDeprecatedDirective(enumValue, enumValueDefinition);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,11 @@ interface Character {
then:
result == """"One of the films in the Star Wars Trilogy"
enum Episode {
"Released in 1977."
NEWHOPE
"Released in 1980."
EMPIRE
"Released in 1983."
JEDI @deprecated(reason: "killed by clones")
}"""

Expand Down Expand Up @@ -425,8 +428,11 @@ interface Character {

"One of the films in the Star Wars Trilogy"
enum Episode {
"Released in 1977."
NEWHOPE
"Released in 1980."
EMPIRE
"Released in 1983."
JEDI
}

Expand Down Expand Up @@ -492,14 +498,17 @@ type Episode {

" Simpson seasons"
enum Season {
" the beginning"
Season1
Season2
Season3
Season4
" Another one"
Season5
Season6
Season7
Season8
" Not really the last one :-)"
Season9
}

Expand Down