We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have an optional field on a Contentful type (with gatsby-source-contentful) that holds markdown.
gatsby-source-contentful
When trying to run gatsby develop, nodes with an empty field break the build:
gatsby develop
The new node didn't pass validation ValidationError: child "internal" fails because [child "content" fails because ["content" is not allowed to be empty]] { id: 'c5YauqPb1uwSOy624aESCWodescriptionOverviewTextNode', parent: 'c5YauqPb1uwSOy624aESCWo', children: [], descriptionOverview: '', internal: { type: 'contentfulAgencyDescriptionOverviewTextNode', mediaType: 'text/markdown', content: '', contentDigest: 'd41d8cd98f00b204e9800998ecf8427e', owner: 'gatsby-source-contentful' } }
I thought the problem was from on-node-create in the source-contentful repo, but skipping createNode() when internal.content is empty doesn't fix the problem.
on-node-create
source-contentful
createNode()
internal.content
The text was updated successfully, but these errors were encountered:
Oh weird hapijs/joi#251
I'll PR a fix for this real quick.
Sorry, something went wrong.
Allow empty content strings in nodes fixes #2067
7c865ce
ba21a92
No branches or pull requests
I have an optional field on a Contentful type (with
gatsby-source-contentful
) that holds markdown.When trying to run
gatsby develop
, nodes with an empty field break the build:I thought the problem was from
on-node-create
in thesource-contentful
repo, but skippingcreateNode()
wheninternal.content
is empty doesn't fix the problem.The text was updated successfully, but these errors were encountered: