Skip to content

Commit

Permalink
test: add regression test for issue 1255
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Jun 11, 2024
1 parent 1455ee9 commit 31300cd
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions _testdata/positive/issue1255.yaml
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

0 comments on commit 31300cd

Please sign in to comment.