Skip to content
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

any_of='use-first' not working #297

Open
kurtrwall opened this issue Oct 10, 2024 · 0 comments
Open

any_of='use-first' not working #297

kurtrwall opened this issue Oct 10, 2024 · 0 comments
Labels

Comments

@kurtrwall
Copy link

Describe the bug
Btw, great library, thanks for making it!

I'm trying to use this with draft 6 jsonschema (Microsoft's AdaptiveCard schema, and I'm still getting:

NotImplementedError: anyOf is not supported as bare property (workarounds available by setting any_of flag)

Example Schema and code

import python_jsonschema_objects as pjs
import requests
schema = requests.get('https://adaptivecards.io/schemas/adaptive-card.json').json()
ns = builder.build_classes(any_of='use-first')
...snip
NotImplementedError: anyOf is not supported as bare property (workarounds available by setting any_of flag)

Expected behavior
The schema was parsed and the classes were generated.

@kurtrwall kurtrwall added the bug label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant