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
I get an error sending a request into my express api. I have validated my schema and also the schema generated from @apidevtools/json-schema-ref-parser and both are valid. When I use @apidevtools/json-schema-ref-parser to generate a json bundle, using $refParser.bundle, the schema produced has an internal link from updatedAt to createdAt, which seems to be the issue.
Describe the bug
I get an error sending a request into my express api. I have validated my schema and also the schema generated from @apidevtools/json-schema-ref-parser and both are valid. When I use @apidevtools/json-schema-ref-parser to generate a json bundle, using $refParser.bundle, the schema produced has an internal link from updatedAt to createdAt, which seems to be the issue.
To Reproduce
Use the following schema:
openapi.yaml
types.yaml
If I modify the openapi.yaml file and remove the reference to the types.yaml file and hard-code the date-time format everything works
as expected.
Actual behavior
Error: can't resolve reference #/components/schemas/ReturnData/properties/createdAt from id #/components/schemas/ReturnData
Expected behavior
Validation successful
Generated by $refParser.bundle
The text was updated successfully, but these errors were encountered: