apicurio-registry: Complex JSON Schema Validation Fail
Hello,
I have observed JSONSchema validation for complex object when object is inside an Array is not working as expected. Validation of objects inside arrays are ignored by validation library.
I used attached JSON schema and register them in APICurio. On validating below data, validation is successful which is supposed to fail as zipCode is string and expected to be integer.
{
"firstName":"568dfa8d-2cd9-473e-acb5-9be84382a74b",
"lastName":"6635e20a-7be7-4b96-a5bc-c13fa57a4a04",
"age":20,
"city":[{"name":"573f459c-0aa4-4338-9821-60a04260cc7e","zipCode":"12345"}]
}
I sent the below data
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 16 (9 by maintainers)
Can you explain the use-case further? Are you using Apicurio SerDes with JSON Schema validation enabled in a Kafka application? How are you validating the message/data using the schema registered in registry?