Skip to content

Remove property from existing schema #589

Answered by sinclairzx81
davideroffo asked this question in Q&A
Discussion options

You must be logged in to vote

@davideroffo Hi,

Try removing Type.Strict from the outer schema. The Strict call actually removes compositing symbols that TypeBox needs to remap types. In most cases, you would only call strict on a schema if you are sure you've finished remapping the types, but more often than not, it should be fine to retain the symbols (as they do not serialize to Json are are compatible with Ajv and other validators)

Hope this helps

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davideroffo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants