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
// Anon.prop1 field type must be Output Type but got: undefined
The text was updated successfully, but these errors were encountered:
samueljoli
changed the title
Blows up when passed a joi schema type with rules
Blows up when passed a joi schema type with certain unsupported rules
Dec 30, 2017
i have same problems with date, regex, uri
my schema is:
node : 8.1.2
hapi 17 : ^17.2.0
joi : 13.1.2,
joi2gql : ^1.3.1
schema=Joi.object({firstname: Joi.string(),//this the only that worksfiscalCode: Joi.string().regex(fiscal_code_regex),birthdate : Joi.string().isoDate().default(newDate()),photo: Joi.string().uri(),})
for each field fiscalCode, birthdate and photo i got this error:
Context
8
node
What are you trying to achieve or the steps to reproduce ?
What result did you expect ?
For a valid GraphQL object to be returned
What result did you observe ?
// Anon.prop1 field type must be Output Type but got: undefined
The text was updated successfully, but these errors were encountered: