forked from com2ghz/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose deprecated flag in model template (OpenAPITools#5964)
- Loading branch information
1 parent
d6e2aef
commit cac882a
Showing
4 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
modules/openapi-generator/src/test/resources/3_0/component-deprecated.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
openapi: 3.0.1 | ||
info: | ||
version: 1.0.0 | ||
title: Example | ||
license: | ||
name: MIT | ||
servers: | ||
- url: http://api.example.xyz/v1 | ||
|
||
components: | ||
schemas: | ||
Food: | ||
deprecated: true | ||
type: string | ||
enum: | ||
- dry | ||
- wet | ||
|
||
Pet: | ||
title: a Pet | ||
deprecated: true | ||
description: A pet up for adoption | ||
type: object | ||
required: | ||
- name | ||
- status | ||
properties: | ||
name: | ||
type: string | ||
example: doggie | ||
status: | ||
type: string | ||
description: pet status | ||
enum: | ||
- available | ||
- pending | ||
- adopted |