-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
anyof allof oneof not support #1649
Comments
Hi At present these tags are ignored |
Property which uses anyof is generated with jave type as Object. It is not ignored as it is said above or? Also till when support for these is expected, any tentative date? |
Properties that use *Of will most likely be represented by {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"string_property": {
"allOf": [{
"properties": {
"foo": {
"type": "string"
}
},
"required": ["foo"]
}
]
}
}
}
Whilst following valid schema would not: {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"allOf": [
{
"properties": {
"foo": { "type": "string" }
},
"required": [ "foo" ]
}
]
}
No tentative dates. |
Is there any workaround possible to take into account *Of by making a custom RuleFactory? |
Haven't tried all variants out though it could be, this really depends on the use-case(s). |
Hello,
Can you please help to know what is the behavior is java class generation api if json schema has anyof/oneof/allof/not tags?
Rgds,
Kamal
The text was updated successfully, but these errors were encountered: