-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing argument default values (#42)
* Add failing test for directive default value * Fix missing argument default values
- Loading branch information
1 parent
c68b248
commit 0cce251
Showing
3 changed files
with
287 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
{ | ||
"__schema": { | ||
"queryType": { | ||
"name": "Query" | ||
}, | ||
"mutationType": null, | ||
"subscriptionType": null, | ||
"types": [ | ||
{ | ||
"kind": "SCALAR", | ||
"name": "Boolean", | ||
"description": "The `Boolean` scalar type represents `true` or `false`.", | ||
"fields": null, | ||
"inputFields": null, | ||
"interfaces": null, | ||
"enumValues": null, | ||
"possibleTypes": null | ||
}, | ||
{ | ||
"kind": "SCALAR", | ||
"name": "Float", | ||
"description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).", | ||
"fields": null, | ||
"inputFields": null, | ||
"interfaces": null, | ||
"enumValues": null, | ||
"possibleTypes": null | ||
}, | ||
{ | ||
"kind": "ENUM", | ||
"name": "HelloEnum", | ||
"description": null, | ||
"fields": null, | ||
"inputFields": null, | ||
"interfaces": null, | ||
"enumValues": [ | ||
{ | ||
"name": "HELLO_1", | ||
"description": null, | ||
"isDeprecated": false, | ||
"deprecationReason": null | ||
}, | ||
{ | ||
"name": "HELLO_2", | ||
"description": null, | ||
"isDeprecated": false, | ||
"deprecationReason": null | ||
}, | ||
{ | ||
"name": "HELLO_3", | ||
"description": null, | ||
"isDeprecated": false, | ||
"deprecationReason": null | ||
} | ||
], | ||
"possibleTypes": null | ||
}, | ||
{ | ||
"kind": "INPUT_OBJECT", | ||
"name": "HelloInput", | ||
"description": null, | ||
"fields": null, | ||
"inputFields": [ | ||
{ | ||
"name": "humbug", | ||
"description": null, | ||
"type": { | ||
"kind": "SCALAR", | ||
"name": "String", | ||
"ofType": null | ||
}, | ||
"defaultValue": null | ||
} | ||
], | ||
"interfaces": null, | ||
"enumValues": null, | ||
"possibleTypes": null | ||
}, | ||
{ | ||
"kind": "SCALAR", | ||
"name": "ID", | ||
"description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.", | ||
"fields": null, | ||
"inputFields": null, | ||
"interfaces": null, | ||
"enumValues": null, | ||
"possibleTypes": null | ||
}, | ||
{ | ||
"kind": "SCALAR", | ||
"name": "Int", | ||
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", | ||
"fields": null, | ||
"inputFields": null, | ||
"interfaces": null, | ||
"enumValues": null, | ||
"possibleTypes": null | ||
}, | ||
{ | ||
"kind": "SCALAR", | ||
"name": "String", | ||
"description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", | ||
"fields": null, | ||
"inputFields": null, | ||
"interfaces": null, | ||
"enumValues": null, | ||
"possibleTypes": null | ||
} | ||
], | ||
"directives": [ | ||
{ | ||
"name": "hello", | ||
"description": null, | ||
"locations": [ | ||
"FIELD_DEFINITION" | ||
], | ||
"args": [ | ||
{ | ||
"name": "foo", | ||
"description": null, | ||
"type": { | ||
"kind": "NON_NULL", | ||
"name": null, | ||
"ofType": { | ||
"kind": "SCALAR", | ||
"name": "String", | ||
"ofType": null | ||
} | ||
}, | ||
"defaultValue": "\"foo\"" | ||
}, | ||
{ | ||
"name": "bar", | ||
"description": null, | ||
"type": { | ||
"kind": "SCALAR", | ||
"name": "Int", | ||
"ofType": null | ||
}, | ||
"defaultValue": "1" | ||
}, | ||
{ | ||
"name": "baz", | ||
"description": null, | ||
"type": { | ||
"kind": "SCALAR", | ||
"name": "Boolean", | ||
"ofType": null | ||
}, | ||
"defaultValue": "true" | ||
}, | ||
{ | ||
"name": "biff", | ||
"description": null, | ||
"type": { | ||
"kind": "SCALAR", | ||
"name": "Float", | ||
"ofType": null | ||
}, | ||
"defaultValue": "1.23" | ||
}, | ||
{ | ||
"name": "boo", | ||
"description": null, | ||
"type": { | ||
"kind": "LIST", | ||
"name": null, | ||
"ofType": { | ||
"kind": "SCALAR", | ||
"name": "String", | ||
"ofType": null | ||
} | ||
}, | ||
"defaultValue": "[\"boo\"]" | ||
}, | ||
{ | ||
"name": "bah", | ||
"description": null, | ||
"type": { | ||
"kind": "INPUT_OBJECT", | ||
"name": "HelloInput", | ||
"ofType": null | ||
}, | ||
"defaultValue": "{humbug: \"humbug\"}" | ||
}, | ||
{ | ||
"name": "blah", | ||
"description": null, | ||
"type": { | ||
"kind": "ENUM", | ||
"name": "HelloEnum", | ||
"ofType": null | ||
}, | ||
"defaultValue": "HELLO_1" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |