Open kspmmitt opened 4 days ago
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?
Property which uses anyof is generated with jave type as Object.
Properties that use *Of will most likely be represented by Object
as in:
{
"$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" ]
}
]
}
Also till when support for these is expected, any tentative date?
No tentative dates.
Is there any workaround possible to take into account *Of by making a custom RuleFactory?
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