fix: models view when object key contains deprecated:true (#6371)

fixes #6369
This commit is contained in:
Tim Lai
2020-09-09 16:43:01 -07:00
committed by GitHub
parent 5123b47ef4
commit d4eea4da1b
6 changed files with 165 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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