Hi there!
First wanted to start off by saying thanks for working on such a great package, it's allowed my team to move super quickly and has been great.
Issue
Recently we noticed that some valid JSON Schema causes dezerialize to throw, specifically array item types. Here's an example:
The below is the correct JSON Schema but causes zodex to throw:
{
"type": "object",
"properties": {
"myArray": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
What works correctly for zodex, but is invalid json schema and wouldn't properly validate if the JSON Schema was used:
{
"type": "object",
"properties": {
"myArray": {
"type": "array",
"element": {
"type": "string"
}
}
}
}
I was curious if it would be possible to fix this case? Obviously for backwards compatibility element would still need to continue working but it'd be nice if zodex more closely respected the json schema spec.
Thanks in advance!
Hi there!
First wanted to start off by saying thanks for working on such a great package, it's allowed my team to move super quickly and has been great.
Issue
Recently we noticed that some valid JSON Schema causes
dezerializeto throw, specifically array item types. Here's an example:The below is the correct JSON Schema but causes zodex to throw:
{ "type": "object", "properties": { "myArray": { "type": "array", "items": { "type": "string" } } } }What works correctly for zodex, but is invalid json schema and wouldn't properly validate if the JSON Schema was used:
{ "type": "object", "properties": { "myArray": { "type": "array", "element": { "type": "string" } } } }I was curious if it would be possible to fix this case? Obviously for backwards compatibility
elementwould still need to continue working but it'd be nice if zodex more closely respected the json schema spec.Thanks in advance!