Skip to content

Add support for OpenAPI overlays #125

Closed

Activity

  1. daveshanley commented on Jun 13, 2023

    @daveshanley
    Member

    Good suggestion! adding to the backlog.

  2. added
    enhancement
    on Jun 13, 2023
  3. daveshanley commented on Jul 17, 2023

    @daveshanley
    Member

    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'

  4. jamietanna commented on Aug 15, 2024

    @jamietanna

    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

    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)

  5. TristanSpeakEasy commented on Aug 15, 2024

    @TristanSpeakEasy
    ContributorAuthor

    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

  6. jamietanna commented on Aug 16, 2024

    @jamietanna
  7. TristanSpeakEasy commented on Aug 16, 2024

    @TristanSpeakEasy
    ContributorAuthor
  8. daveshanley commented on Feb 1, 2025

    @daveshanley
    Member

    I am adding this onto the roadmap. Overlays add value and I see speakeasy has done a great job with the overlay playground.

  9. daveshanley commented on Dec 23, 2025

    @daveshanley
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions