fix: models view when object key contains deprecated:true (#6371)
fixes #6369
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
swagger: "2.0"
|
||||
info:
|
||||
description: "OAS 2.0 sample with Object Model deprecated: true"
|
||||
version: "0.0.1"
|
||||
title: "Swagger Sample"
|
||||
paths:
|
||||
/test/:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
description: Successful Response
|
||||
definitions:
|
||||
IdentificationProfile:
|
||||
type: object
|
||||
deprecated: true
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
format: int32
|
||||
message:
|
||||
type: string
|
||||
IDP2:
|
||||
type: array
|
||||
deprecated: true
|
||||
items:
|
||||
type: string
|
||||
@@ -0,0 +1,26 @@
|
||||
swagger: "2.0"
|
||||
info:
|
||||
description: "OAS 2.0 sample with Object Model deprecated: true"
|
||||
version: "0.0.1"
|
||||
title: "Swagger Sample"
|
||||
paths:
|
||||
/test/:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
description: Successful Response
|
||||
definitions:
|
||||
IdentificationProfile:
|
||||
type: object
|
||||
deprecated: false
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
format: int32
|
||||
message:
|
||||
type: string
|
||||
IDP2:
|
||||
type: array
|
||||
deprecated: true
|
||||
items:
|
||||
type: string
|
||||
@@ -0,0 +1,28 @@
|
||||
openapi: 3.0.2
|
||||
info:
|
||||
title: "OAS 3.0 sample with Object Model deprecated: true"
|
||||
version: 0.1.0
|
||||
servers:
|
||||
- url: http://testserver1.com
|
||||
paths:
|
||||
/test/:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
description: Successful Response
|
||||
components:
|
||||
schemas:
|
||||
IdentificationProfile:
|
||||
type: object
|
||||
deprecated: true
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
format: int32
|
||||
message:
|
||||
type: string
|
||||
IDP2:
|
||||
type: array
|
||||
deprecated: true
|
||||
items:
|
||||
type: string
|
||||
@@ -0,0 +1,28 @@
|
||||
openapi: 3.0.2
|
||||
info:
|
||||
title: "OAS 3.0 sample with Object Model deprecated: true"
|
||||
version: 0.1.0
|
||||
servers:
|
||||
- url: http://testserver1.com
|
||||
paths:
|
||||
/test/:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
description: Successful Response
|
||||
components:
|
||||
schemas:
|
||||
IdentificationProfile:
|
||||
type: object
|
||||
deprecated: false
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
format: int32
|
||||
message:
|
||||
type: string
|
||||
IDP2:
|
||||
type: array
|
||||
deprecated: true
|
||||
items:
|
||||
type: string
|
||||
Reference in New Issue
Block a user