Skip to content

Deprecated Tag is not rendered when used in "oneOf" #1366

Open
@svrnwnsch

Description

@svrnwnsch

So I have the following json schema for a query parameter which I want to render:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "oneOf": [
    {
      "type": "string",
      "example": "include",
      "enum": ["include", "only", "exclude"]
    },
    {
      "type": "string",
      "enum": ["true"],
      "deprecated": true
    }
  ]
}

While the deprecation property works fine if I would use it without the oneOf for this case I do not see it:
image

Is this the correct whey how I mark an value for an enum as deprecated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    openapiQuestions about specification, validity, and edge cases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions