Convert JSON Schema files to TypeScript interfaces
Tested on Node.js (10, 12 or 14 LTS)
- Run
npm install
- Add your JSON Schemas to the
input
folder - Run
npm start
ornode index.js
- Your TypeScript interfaces will be in the
output
folder
Uses the json-schema-to-typescript
npm package.
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.