New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@toa.io/schemas

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toa.io/schemas

Toa Schemas

Source
npmnpm
Version
1.0.0-alpha.299
Version published
Weekly downloads
1.9K
-27.96%
Maintainers
1
Weekly downloads
 
Created
Source

Toa Schema Validator

Feeds your JSONSchema to Ajv.

schema(schema: object): Schema

Factory for Schema class.

.fit(value)

Returns error if given value doesn't match the schema, null otherwise.

schema(path: string): Schema

Loads schema from a file.

namespace(schemas: object[]): Namespace

Factory for Namespace class.

namespace(path: string): Namespace

Loads schemas from .cos.yaml files within given directory, setting their missing $id to the file relative path and basename and returns Namespace.

"up" schema references (../) are not supported.

FAQs

Package last updated on 10 Sep 2026

Related posts