Menu
Feedback
Start here

Known issues

Known issues
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

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback