scalar / openapi-parser

Modern OpenAPI parser written in TypeScript
MIT License
26 stars 7 forks source link

Utilities to parse through the validated OpenAPI spec #135

Open huypham50 opened 1 month ago

huypham50 commented 1 month ago

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