Skip to content

Share header with multiple response objects #369

Open
@huangsam

Description

@huangsam

Can there not just be a simple header generically at the response level not specific to each of the status codes? For our case, this kind of header is 99% the same across our codebase.

---

responses:
  200:
    description: no error
    headers:
      Content-Type:
        description: application/json
        type: string

It would be a pain to copy+paste this to each and every routine that supports HTTP JSON responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    re-use: globals/defaultsDefault or global components that can be overridden in some way

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions