Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Latest commit

 

History

History
34 lines (22 loc) · 1.1 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.1 KB

JSON Schema to TS

License

Convert JSON Schema files to TypeScript interfaces

How to use

Tested on Node.js (10, 12 or 14 LTS)

  • Run npm install
  • Add your JSON Schemas to the input folder
  • Run npm start or node index.js
  • Your TypeScript interfaces will be in the output folder

Credits

Uses the json-schema-to-typescript npm package.

Copyright and license

JSON Schema to TS is copyright 2021 Snowplow Analytics Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.