Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated field of type array of referenced schema not displayed as deprecated #829

Closed
AlaNDGT opened this issue Sep 29, 2022 · 2 comments

Comments

@AlaNDGT
Copy link

AlaNDGT commented Sep 29, 2022

Version: 9.3.3

Description:

Specified an array field as deprecated and the sub item is a reference to a schema but currently it's not being displayed as deprecated.

image

Expected: Field displayed as deprecated

Example OAS:

openapi: 3.1.0
info:
  title: test
  version: '1.0'
servers:
  - url: 'http://localhost:3000'
paths:
  /test:
    parameters: []
    get:
      summary: test
      responses:
        '200':
          description: Test
          content:
            application/json:
              schema:
                type: object
                properties:
                  foo:
                    type: array
                    deprecated: true
                    items:
                      $ref: '#/components/schemas/Foo'
      operationId: get-test
      description: Test
components:
  schemas:
    Foo:
      title: Foo
      type: object
      properties:
        id:
          type: string
@mrin9
Copy link
Collaborator

mrin9 commented Sep 20, 2024

the above pull request fixxes the issue only for the schema-style table, this should needs to be applied to schema-style tree

@mrin9
Copy link
Collaborator

mrin9 commented Sep 20, 2024

fixed in 6b1836d

@mrin9 mrin9 closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants