google / gnostic

A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
Apache License 2.0
2.1k stars 248 forks source link

sla draft support #315

Open vtolstov opened 2 years ago

vtolstov commented 2 years ago

What you think about supporting https://github.com/isa-group/SLA4OAI-Specification/blob/main/versions/1.0.0-Draft.md ? My use-case - allow to specify in proto/openapi timeout for each endpoint

timburks commented 2 years ago

I'd be open to it - I've been participating in discussions around SLA4OAI. In the first year or so of gnostic, we had a contribution that built support for schema extensions (see the extensions directory). To my knowledge, that hasn't gotten any use, so I've been thinking about removing it, but it could be a good way to support the SLA4OAI specification - essentially we would use a JSON schema of the specification extension to generate protos and parsing code that could then be called from gnostic as a plugin.