Skip to content
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

readOnly property validation #865

Closed
palwe-prafulla opened this issue Oct 5, 2023 · 1 comment
Closed

readOnly property validation #865

palwe-prafulla opened this issue Oct 5, 2023 · 1 comment

Comments

@palwe-prafulla
Copy link

Hi,
I am using schema validator version 1.0.57 and realised that schema validation for readOnly doesnt work or not implemented ion this version.
I am using json schema with few properties marked as "readOnly" : true but with json payload which has these properties validated against schema doesnt return any errors.
I saw few issues closed related to readOnly validator.

Wanted to check what version has readOnly validator and if its supported how it works with any context of the json payload?

e.g. if a simple validation of json payload against json schema with readOnly properties, how would validator know if this is post/put request payload vs if its response payload to do any sort of validation on these proprties?

Is there any documentation on how to validate this based on some context to be passed for validation indicating if its post/put (create/update) vs response etc essentially indicating in either json schema about this or while calliing validate api?

@stevehu
Copy link
Contributor

stevehu commented May 30, 2024

I would recommend upgrading to 1.4.x. Thanks.

@stevehu stevehu closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants