Open MariusVuscanNx opened 7 months ago
Given a json schema:
{ "$schema": "http://json-schema.org/draft-07/schema#", "properties": { "BA": { "oneOf": [ { "properties": { "someProp": { "type": "string" } }, "type": "object" }, { "items": { "properties": { "someProp": { "type": "string" } }, "type": "object" }, "type": "array" } ] } } }
running the filterBySchema function on a json:
{ "BA": { "someProp": "123", "someProp": "1234" } }
will result in emptying the object/array property.
{ "BA": {} }
while the expected result would be:
{ "BA": { "someProp": "123" } }
Given a json schema:
running the filterBySchema function on a json:
will result in emptying the object/array property.
while the expected result would be: