You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raise the following error: "@default.value is not a valid Time" with a correct Time value.
The error in this case should be that Time is not supported.
DateTime case: DateTime is a supported type, however, no validation rules happen for a List of DateTime values.
We've been able to confirm this bug using the steps to reproduce that you provided - many thanks @MacondoExpress! 🙏 We will now prioritise the bug and address it appropriately.
Describe the bug
Current
@default
validation does not provide the correct error message for some typeDefs.For instance:
Time
issue:Raise the following error: "@default.value is not a valid Time" with a correct
Time
value.The error in this case should be that
Time
is not supported.DateTime case:
DateTime
is a supported type, however, no validation rules happen for a List ofDateTime
values.The above, in fact, does not raise any error while
dateTime: DateTime @default(value: "dummy")
raise@default.value is not a valid DateTime
.Float case:
The
Float
type is supported, however, when not specifying the fraction part it raises an error:Raise the error: "@default.value on Float fields must be of type Float".
However, this is different from the GraphQL input specification:
https://spec.graphql.org/October2021/#sel-GAHXTHDCAACEB68G
System (please complete the following information):
The text was updated successfully, but these errors were encountered: