1.0.0 • Published 5 years ago
jwk-schema v1.0.0
JSON Web Key JSON Schema and TypeScript Types
- Author: Jonathan M. Wilbur [jonathan@wilbur.space](mailto:jonathan@wilbur.space)
- Copyright Year: 2020
- License: MIT License
JSON Schema (both as a JavaScript Object and as JSON) and TypeScript interfaces for representing JSON Web Keys, as described here.
Recreate
I am not going to implement scripts or automation for this, because it will probably not going to change very often.
- Compile
index.tstoindex.js:tsc ./source/index.ts. - Convert
index.jstoindex.json:node -e 'console.log(JSON.stringify(require(\"./source/index.js\").default));' > .\source\index.json. - Convert
index.jsontoindex.d.ts:node ./tools/compileInterfaces.js. - Just manually dereference
JSONWebKeyinindex.jsonto createindex.deref.json.
1.0.0
5 years ago