Replies: 1 comment 3 replies
-
Please provide an example of your schema and instance and what you expect. |
Beta Was this translation helpful? Give feedback.
-
Please provide an example of your schema and instance and what you expect. |
Beta Was this translation helpful? Give feedback.
-
I have been learning to build schemas and am trying to apply them to a current project. I have been running into issues with patching that I believe to be a misunderstanding, but want to be sure.
Is my understanding correct, that when a required property is missing, and there is a default defined for the property, I should receive back a json_patch object that can be used to bring the json under validation up to schema spec?
If I am correct, are there limitations to this? Can my schema define a default that gets provided back in the case of an empty object? Currently when I try to validate an empty object I receive an empty object for the returned patch.
Beta Was this translation helpful? Give feedback.
All reactions