-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Scalar Specification URLs #1171
Conversation
implicit val bigIntSchema: Schema[Any, BigInt] = scalarSchema("BigInt", None, None, IntValue(_)) | ||
implicit val doubleSchema: Schema[Any, Double] = scalarSchema("Float", None, None, FloatValue(_)) | ||
implicit val floatSchema: Schema[Any, Float] = scalarSchema("Float", None, None, FloatValue(_)) | ||
implicit val bigDecimalSchema: Schema[Any, BigDecimal] = scalarSchema("BigDecimal", None, None, FloatValue(_)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can go ahead and provide urls for any of these. UUID
for instance does have a specification I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the official UUID spec, or something specific to GraphQL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, the spec links to https://tools.ietf.org/html/rfc4122
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we use ID
for that, which is a standard scalar, and they say that standard scalars shouldn't have that URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But maybe the types in TemporalSchema
could link to the relevant RFCs?
* Custom Scalar Specification URLs * Use fold
* Custom Scalar Specification URLs * Use fold
Part of #1159