@tuzki/tools-schema
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@tuzki/tools-schema

低代码 Schema 生成包和校验包

快速开始

import { validate, ValidateResult } from '@tuzki/tools-schema';
import CmplibModelV1 from '../src/schemas/cmplib_model.v1.0.0.0.0.json';

const result: ValidateResult = await validate<CmplibConfigV1>({
  schema: CmplibModelV1,
  data: {
    // 真实数据
  },
});

console.log(result);

Dependents (3)

Package Sidebar

Install

npm i @tuzki/tools-schema

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

126 kB

Total Files

55

Last publish

Collaborators

  • oceania
  • xuexing
  • nichubiao
  • jinxu0918
  • jiyu.shao
  • lilong767676