Since the OpenAPI Specification is a "machine-readable interface definition language for describing, [...] web services", and TypeScript is practically the only available type solution for Node.js, I confidently googled:
OpenAPI to TypeScript JSON schema generator.
After an initial attempt to manually replace the $refs all around my JSON schemas, I ended up putting together a few lines to automate the process which I eventually abstracted into a JS NPM package: openapi-ts-json-schema.
Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.
Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
Resolve external/remote $refs and dereference them with @apidevtools/json-schema-ref-parser (resolving $ref's)
Due to the OpenAPI v3.0 and JSON Schema discrepancy, you can use this JS library to convert OpenAPI Schema objects to proper JSON Schema. (by openapi-contrib)
Convert to JSON schema with @openapi-contrib/openapi-schema-to-json-schema and openapi-jsonschema-parameters
is it possible to type a named function the way a arrow function is typed?
1 project | /r/typescript | 8 Dec 2023
VS Code still unable to show default value for optional function parameters after 6 years. Are you ok with that?
1 project | /r/vscode | 1 Dec 2023
Favour TypeScript Types over Interfaces
1 project | news.ycombinator.com | 25 Nov 2023
Typescript: Validating External Data in Full Stack Applications
1 project | dev.to | 7 Nov 2023
What do you struggle with the most in TS?
1 project | /r/typescript | 18 Oct 2023