Skip to content

Group schema components by content-type #3168

@souenzzo

Description

@souenzzo

I'm working on an API that has many content-type, and they use references to schema

The references to the user entity, for example, aren't the same on each content-type.

I'm currently handling that by adding a content-type prefix on each schema:

schemas:
  application/json_user:
    type: object
  application/custom+json_user:
    type: object

I'd like to use something like

schemas:
  application/json:
    user:
      ...
  application/custom+json:
    user:
      ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    re-use: ref-group-combineRe-use requests involving grouping components and combining groups

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions