-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1263 from tdakkota/revert/issue-1246
revert: add support for Free-form Objects when a schema definitions only specifies type: object
- Loading branch information
Showing
74 changed files
with
1,017 additions
and
5,269 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: API | ||
version: 0.1.0 | ||
paths: | ||
/test: | ||
get: | ||
operationId: test | ||
responses: | ||
"200": | ||
description: Teste | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/HistoryEntry" | ||
components: | ||
schemas: | ||
HistoryEntry: | ||
description: "Properties common for each entry in the scaling history." | ||
type: object | ||
oneOf: | ||
- $ref: "#/components/schemas/HistoryErrorEntry" | ||
- $ref: "#/components/schemas/HistoryIgnoreEntry" | ||
- $ref: "#/components/schemas/HistorySuccessEntry" | ||
properties: | ||
message: | ||
type: string | ||
description: Textual information about the scaling event. | ||
example: app | ||
HistoryErrorEntry: | ||
description: Description of a failed scaling even in history. | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
description: | | ||
In case the scaling failed, the reason is provided in this field. | ||
example: failed to compute new app instances | ||
HistoryIgnoreEntry: | ||
description: Description of an ignored scaling event in history. | ||
type: object | ||
properties: | ||
ignore_reason: | ||
type: string | ||
description: | | ||
In case the scaling was ignored, the reason is provided in this field. | ||
example: app in cooldown period | ||
HistorySuccessEntry: | ||
description: Description of a successful scaling event event in history. | ||
type: object | ||
properties: {} # No extra fields needed in this variant |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.