Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→check-types-mini→Examples

Table of Contents

  • Quick Take
  • Exclude selected paths from array acceptance
  • Accept arrays of the reference value's type
  • Allow any shape below a schema path
  • Customise validation error context
  • Ignore a key wherever it occurs
  • Ignore only selected nested paths
  • Use a nested schema object
  • Allow missing and additional keys
  • Allow multiple types through a schema
  • Validate an options object against defaults
↑ back to top

Quick Take

↑ back to top

Exclude selected paths from array acceptance

↑ back to top

Accept arrays of the reference value's type

↑ back to top

Allow any shape below a schema path

↑ back to top

Customise validation error context

↑ back to top

Ignore a key wherever it occurs

↑ back to top

Ignore only selected nested paths

↑ back to top

Use a nested schema object

↑ back to top

Allow missing and additional keys

↑ back to top

Allow multiple types through a schema

↑ back to top

Validate an options object against defaults

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab