scalar / openapi-parser

Modern OpenAPI parser written in TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Utilities to parse through the validated OpenAPI spec

huypham50 opened this issue · comments

commented

What happens?

Would be great to have some type-safe utilities built in to the library (similar to readmeio/oas). Examples:

getPaths(spec)
getPath(spec, endpoint, httpMethod)
getRequestBody(spec, endpoint, httpMethod)
getResponseBody(spec, endpoint, httpMethod)
// etc

What did you expect to happen?

Not a bug but have no where else to file

How can we reproduce the issue?

Not a bug but have no where else to file

Swagger/OpenAPI Example

No response