How to use OpenAPI to get data from request JSON? or Best way to extract JSON data from a request usi

16 Replies, 729 Views

For openapi get from request json, I’d say ditch the manual work and use Swagger Codegen.

It generates the parsing logic for you based on your OpenAPI spec. Saves so much time.

Validation-wise, OpenAPI’s built-in checks are decent, but I layer Joi (for Node) on top for extra safety.

---

Messages In This Thread



Users browsing this thread: 1 Guest(s)