-
Notifications
You must be signed in to change notification settings - Fork 64
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
resolveCirculars
doesn't work
#206
Comments
The issue here is that at the root of your document, you have an invalid JSON Reference because {
'#': {
def: { '$ref': '#/definitions/Foo', definitions: [Object] },
uri: '#/definitions/Foo',
uriDetails: {
scheme: undefined,
userinfo: undefined,
host: undefined,
port: undefined,
path: '',
query: undefined,
fragment: '/definitions/Foo',
reference: 'same-document'
},
type: 'local',
warning: 'Extra JSON Reference properties will be ignored: definitions'
}
} So while a JSON Reference is found, it's invalid and resolution will fail. This is a "garbage in, garbage out" kind of situation. I've thought about how to handle this and the first option would be to just not attempt to resolve invalid JSON References. That's about the only clean option we have. Thoughts? |
thanks for the reply. this schema was generated by pydantic so i raised it there and will see what they say pydantic/pydantic#5316 |
The text was updated successfully, but these errors were encountered: