// RUNTIME VALIDATORS export function is<T>(input: unknown): input is T; // returns boolean export function assert<T>(input: unknown): T; // throws TypeGuardError export function assertGuard<T>(input: unknown): asserts input is T; export function validate<T>(input: unknown): IValidation<T>; // detailed // JSON FUNCTIONS export namespace json { export function application<T>(): IJsonApplication; //
JSON-LD TypeScript types for Schema.org vocabulary. schema-dts provides TypeScript definitions for Schema.org vocabulary in JSON-LD format. The typings are exposed as complete sets of discriminated type unions, allowing for easy completions and stricter validation. This repository contains two NPM packages: schema-dts-gen Providing a command-line tool to generate TypeScript files based on a specif
This document describes changes from v7.2.4 to v8.0.0. If you are migrating from v6 you can use this document. New features Support JSON Schema draft-2020-12: prefixItems keyword and changed semantics of items keyword, dynamic recursive references. OpenAPI discriminator keyword. Improved JSON Type Definition support: errors consistent with JTD specification. error objects with additional propertie
┌────────────────────────────────┬─────────────────────────────┬────────────────────────────────┐ │ TypeBox │ TypeScript │ Json Schema │ │ │ │ │ ├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤ │ const T = Type.Any() │ type T = any │ const T = { } │ │ │ │ │ ├────────────────────────────────┼─────────────────────────────┼─────────────────────────────
const { verify } = require("verify-json"); let json = { markers: [ { stars: 5, name: 'Rixos The Palm Dubai', location: [25.1212, 55.1535], favorite: true, color: 'red', }, { stars: 4, name: 'Shangri-La Hotel', location: [25.2084, 55.2719], color: 'blue', }, ], }; // <key>:<validator> // <key>:?<validator> - uses ? for optional // <key> - required non null attribute of any type // Skip all the quot
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く