---
title: "Raymond Kelly (@rahmonk) | Hashnode"
description: "Raymond Kelly (@rahmonk) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@rahmonk"
---

@rahmonk

# Raymond Kelly

@rahmonk · Joined January 2023

## Comments

[Have you considered instead of generating the OpenAPI documentation and JSONSchema from code that you instead start with the OpenAPI documentation and use that as the single source of truth. That way you could define an OpenAPI document that is used to generate types for both the client and server as well as can be easily converted to JSONSchema for API validation. I found the following library that does somewhat of what I mentioned above https://www.npmjs.com/package/@alma-cdk/openapix but they use SpecRestAPI construct under the hood. I'm going to try in my own project use the RestAPI construct and build the Models from the JSONSchema generated from the OpenAPI documentation. Btw great articles I'm really liking them.](https://hashnode.com/posts/how-to-automatically-generate-request-models-from-typescript-interfaces/5f9c625a65cd015fab581392/comment/63d1b73b2086bff3543caee5)

Comment · Article · Jan 25, 2023 · [How to Automatically Generate Request Models from TypeScript Interfaces](https://hashnode.com/posts/how-to-automatically-generate-request-models-from-typescript-interfaces/5f9c625a65cd015fab581392)
