jwk-schema
v1.0.0
Published
JSON Schema and TypeScript Types for JSON Web Keys, as defined IETF RFC 7517.
Downloads
5
Maintainers
Readme
JSON Web Key JSON Schema and TypeScript Types
- Author: Jonathan M. Wilbur <[email protected]>
- 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.ts
toindex.js
:tsc ./source/index.ts
. - Convert
index.js
toindex.json
:node -e 'console.log(JSON.stringify(require(\"./source/index.js\").default));' > .\source\index.json
. - Convert
index.json
toindex.d.ts
:node ./tools/compileInterfaces.js
. - Just manually dereference
JSONWebKey
inindex.json
to createindex.deref.json
.