-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
Required properties error path does not contain the required property name #91
Comments
I am confused by what the desired behavior is as well. On v0.1.1, the ProperyPath was set to the child that violated the schema. After upgrading to v0.2.0, the path is now set to the parent. I'm not sure if this change was intended or if a fix (I only had to move a single line of code) would be welcome? |
I just noticed this issue as well (and that there hasn’t been a tagged release in quite some time). It would be good if the behavior was documented if working as intended. |
I'll aim to review the spec and look into it by the end of the week if time permits to move this along. |
@Arqu any news on this? thanks! |
I've looked into it and apparently neither is really up to spec anymore. As the output format is not really correct per spec. For anyone interested, the KeyError structure needs to be updated (and surrounding logic) to contain (at a minimum) |
Hey,
Having a JSON schema with
required
properties generates an error such:I understand that the error is actually on the object level but losing the context of the X field makes it very difficult to display the error under the 'X' field.
Does it make sense to keep the property key that is required in the error somehow?
Thanks,
Asaf
The text was updated successfully, but these errors were encountered: