Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/node_modules/@types/json-schema/index.d.ts

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
import * as windmill from "https://deno.land/x/windmill@v1.80.1/node_modules/@types/json-schema/index.d.ts";

Functions

The checkPropertyChange method will check to see if an value can legally be in property with the given schema This is slightly different than the validate method in that it will fail if the schema is readonly and it will not check for self-validation, it is assumed that the passed in value is already internally valid.

This checks to ensure that the result is valid and will throw an appropriate error message if it is not.

To use the validator call JSONSchema.validate with an instance object and an optional schema object. If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating), that schema will be used to validate and the schema parameter is not necessary (if both exist, both validations will occur).