You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With strict: true, both warnings and errors in the schema terminate the build and make build throw.
With strict: false, both warnings and errors are logged, but build process is not terminated, and build finishes gracefully, without any suggestion in the return value that something went wrong.
There should be a way to tell velite to throw on errors but continue on warnings.
Use case: Make velite throw if a blog post is missing a title, but just give a warning if the same post has a value enabled even though the prerequisites are not met (i.e. tocEnabled is true but s.toc() created empty table of content).
The text was updated successfully, but these errors were encountered:
With
strict: true
, both warnings and errors in the schema terminate the build and makebuild
throw.With
strict: false
, both warnings and errors are logged, but build process is not terminated, andbuild
finishes gracefully, without any suggestion in the return value that something went wrong.There should be a way to tell velite to throw on errors but continue on warnings.
Use case: Make velite throw if a blog post is missing a title, but just give a warning if the same post has a value enabled even though the prerequisites are not met (i.e.
tocEnabled
is true buts.toc()
created empty table of content).The text was updated successfully, but these errors were encountered: