
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@travetto/schema
Advanced tools
This module provide validation for schemas. This is achieved using the following:
@Schema defines a class to be a validated, will auto detect schema from typescript annotations@Field defines a field that will be serialized (if not using auto @Schema())@Require defines a required field@Enum defines a field with only enumerated values@Trimmed whitespace trims the field@Match allows for regex validation on a field@MinLength enforces min length of a string@MaxLength enforces max length of a string@Min enforces min value for a date or a number@Max enforces max value for a date or a number@Email ensures string field matches basic email regex@Telephone ensures string field matches basic telephone regex@Url ensures string field matches basic url regex@Ignore exclude from auto schema registrationexport function View(
Express based support (optional). This will not be exported via the barrel import, but
can be pulled in if express is loaded.
@SchemaBody provides the ability to convert the inbound request body into a schema bound object, and provide
validation before the controller even receives the request.@SchemaQuery provides the ability to convert the inbound request query into a schema bound object, and provide
validation before the controller even receives the request.FAQs
Data type registry for runtime validation, reflection and binding.
The npm package @travetto/schema receives a total of 382 weekly downloads. As such, @travetto/schema popularity was classified as not popular.
We found that @travetto/schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.