We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. Some issue with index on nested array.
Schema:
{ title: "requests schema", version: 0, type: "object", properties: { requests: { type: "array", item: { properties: { id: { type: "string", regex: /[a-f0-9]{24}/i, index: true, }, requestType: { type: "string", }, }, }, }, }, required: ["requests"], }
Check #697 : const schemaObj = objectPath.get(jsonID, 'properties.' + key.replace(/\./g, '.properties.'));
const schemaObj = objectPath.get(jsonID, 'properties.' + key.replace(/\./g, '.properties.'));
schemaObj become like requests.properties.item.properties.id but must be requests.[].id.
requests.properties.item.properties.id
requests.[].id
The text was updated successfully, but these errors were encountered:
I think you forgot the type inside of item: But still looks like a valid bug. Could you PR a test to reproduce the problem?
type
item:
Sorry, something went wrong.
No branches or pull requests
Hello. Some issue with index on nested array.
Schema:
Check #697 :
const schemaObj = objectPath.get(jsonID, 'properties.' + key.replace(/\./g, '.properties.'));
schemaObj become like
requests.properties.item.properties.id
but must berequests.[].id
.The text was updated successfully, but these errors were encountered: