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

Update Contentful example to add validations to solve graphql complexity errors. #33958

Merged
merged 2 commits into from Feb 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
72 changes: 71 additions & 1 deletion examples/cms-contentful/contentful/export.json
Expand Up @@ -151,7 +151,77 @@
"type": "RichText",
"localized": false,
"required": true,
"validations": [],
"validations": [
{
"enabledMarks": ["bold", "italic", "underline", "code"],
"message": "Only bold, italic, underline, and code marks are allowed"
},
{
"enabledNodeTypes": [
"heading-1",
"heading-2",
"heading-3",
"heading-4",
"heading-5",
"heading-6",
"ordered-list",
"unordered-list",
"hr",
"blockquote",
"embedded-entry-block",
"embedded-asset-block",
"hyperlink",
"entry-hyperlink",
"asset-hyperlink",
"embedded-entry-inline"
],
"message": "Only heading 1, heading 2, heading 3, heading 4, heading 5, heading 6, ordered list, unordered list, horizontal rule, quote, block entry, asset, link to Url, link to entry, link to asset, and inline entry nodes are allowed"
},
{
"nodes": {
"asset-hyperlink": [
{
"size": {
"max": 10
},
"message": null
}
],
"embedded-asset-block": [
{
"size": {
"max": 10
},
"message": null
}
],
"embedded-entry-block": [
{
"size": {
"max": 10
},
"message": null
}
],
"embedded-entry-inline": [
{
"size": {
"max": 10
},
"message": null
}
],
"entry-hyperlink": [
{
"size": {
"max": 10
},
"message": null
}
]
}
}
],
"disabled": false,
"omitted": false
},
Expand Down