Re:Most RESTful APIs Aren't RESTful
by agumonkey on Wednesday July 09, 2025 @07:18PM
(#44515692)
anything I could read to imitate that workflow ?
[ Parent
| on HN ]
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`.
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.