Skip to content

Deprecated Object Models not displayed as deprecated #6369

@tim-lai

Description

@tim-lai

Q&A (please complete the following information)

  • OS: macOS
  • Browser: Chrome
  • Version:
  • Method of installation:
  • Swagger-UI version: 3.32.5
  • Swagger/OpenAPI version: both Swagger 2.0, OpenAPI 3.0

Content & configuration

(Add to) Example Swagger/OpenAPI definition:

# "components/schema" (OAS3), or "definitions" (OAS2)
    IdentificationProfile:
      type: object
      deprecated: true
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
    IDP2:
      type: array
      deprecated: true
      items:
        type: string

Describe the bug you're encountering

To reproduce...

Steps to reproduce the behavior:

  1. Add above snippet to a valid defintion
  2. Click on Models: IdentificationProfile
  3. See lack of deprecated: true

Expected behavior

The object model is shown as deprecated in the SwaggerU

Screenshots

bug-ui-6369

Additional context or thoughts

As a comparison, in Models: IDP2, the Array Model properly displays deprecated: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions