Schema validation failing for custom types in Headless CMS
CMS
•
ID: 903687
Backlog
Published on9/19/2023
•
Last updated on9/19/2023
1 min read
Summary
We have failing schema validations in required fields without default value in Headless CMS for custom page types, the lib that we use is considering it failing but the required fields are filled correctly
Simulation
Create a schema structure for a specific page with a required field and don't put a default value for this required field
..."required": ["field1"],"properties": { "field1": { "title": "Field", "type": "string", "description": "Some description" }}...
Workaround
Put a default value in the required fields