You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there are better ways to cover the use cases that overlays would provide when adding, removing or modifyingm or creating 'sub renders'
What would you be thinking? 👀
oapi-codegen/oapi-codegen#1553 is where we're considering this, as a common issue folks have is that they can't modify the source spec before generation, or it's a pain to modify it from the upstream, and as upstream spec changes, they have to re-apply patches
Just to add to this we are seeing a huge amount of usage of overlays these days as most customers do want to keep their spec pure because they are generating it from code.
It would definitely be great to see support in Libopenapi though as that would give us hopefully relevant line numbers to either the spec or overlay when validation fails for example.
Though as Jamie mentions we do have our own implementation as a preprocess before passing over to Libopenapi.
@jamietanna let us know if there would be interest from you for us to open source our implementation
Activity
daveshanley commentedon Jun 13, 2023
Good suggestion! adding to the backlog.
daveshanley commentedon Jul 17, 2023
I've been thinking more about this. I've looked into the syntax, and it's kinda crazy.
Is there much support for Overlays? I don't see much of it myself.
I think there are better ways to cover the use cases that overlays would provide when adding, removing or modifyingm or creating 'sub renders'
jamietanna commentedon Aug 15, 2024
What would you be thinking? 👀
oapi-codegen/oapi-codegen#1553 is where we're considering this, as a common issue folks have is that they can't modify the source spec before generation, or it's a pain to modify it from the upstream, and as upstream spec changes, they have to re-apply patches
From what I can tell, https://github.com/speakeasy-api/speakeasy/tree/main/internal/overlay is Speakeasy's implementation (which we'd consider vendoring into
oapi-codegen)TristanSpeakEasy commentedon Aug 15, 2024
Just to add to this we are seeing a huge amount of usage of overlays these days as most customers do want to keep their spec pure because they are generating it from code.
It would definitely be great to see support in Libopenapi though as that would give us hopefully relevant line numbers to either the spec or overlay when validation fails for example.
Though as Jamie mentions we do have our own implementation as a preprocess before passing over to Libopenapi.
@jamietanna let us know if there would be interest from you for us to open source our implementation
jamietanna commentedon Aug 16, 2024
Thanks @TristanSpeakEasy! Looking at it, there is actually https://github.com/speakeasy-api/openapi-overlay which may do the heavy lifting? 👀
TristanSpeakEasy commentedon Aug 16, 2024
daveshanley commentedon Feb 1, 2025
I am adding this onto the roadmap. Overlays add value and I see speakeasy has done a great job with the overlay playground.
Adds full support for Overlays! #125
Adds full support for Overlays! #125
daveshanley commentedon Dec 23, 2025
Support for overlays added in
v0.31https://pb33f.io/libopenapi/overlays/
Adds full support for Overlays! pb33f#125