News for hackers. Stuff that matters.
Re:Most RESTful APIs Aren't RESTful by crabmusket on Wednesday July 09, 2025 @08:16PM (#44516010)
I haven't written anything up - maybe one day - but our stack is `ts-morph` to get some basic metadata out of our "service definition" typescript files, `ts-json-schema-generator` to go from there to JSON Schema, `quicktype-core` to go to other languages.

Schema validation and type generation vary by language. When we need to validate schemas in JS/TS land, we're using `ajv`. Our generation step exports the JSON Schema to a valid JS file, and we load that up with AJV and grab schemas for specific types using `getSchema`.

Re:Most RESTful APIs Aren't RESTful by agumonkey on Thursday July 10, 2025 @03:01AM (#44518132)
Can't thank you enough. I'm gonna try these and see.
Re:Most RESTful APIs Aren't RESTful by crabmusket on Saturday July 12, 2025 @05:31AM (#44540641)
One day I hope to publish this as a tool, or at least parts of it. But you know, that won't put food on the table.