Skip to content

Commit

Permalink
Added test file
Browse files Browse the repository at this point in the history
  • Loading branch information
VShingala committed Jan 12, 2024
1 parent a26279f commit 436b08a
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions test/data/valid_openapi/enumAllOfConflicts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io/v1
paths:
/pets:
get:
summary: List all pets
operationId: listPets
tags:
- pets
responses:
'200':
description: An paged array of pets
headers:
x-next:
description: A link to the next page of responses
schema:
type: string
content:
application/json:
schema:
$ref: "#/components/schemas/StatusSEP24Test"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
components:
schemas:
StatusSEPGeneric:
type: string
description: Statuses common for all SEP transactions
enum:
- incomplete
- completed
- refunded
StatusSEP24Test:
description: Possible status value for SEP-24 transactions
properties:
status:
allOf:
- $ref: '#/components/schemas/StatusSEPGeneric'
- type: string
description: Unique SEP-24 statuses
enum:
- no_market
- too_small
- too_large
Error:
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string

0 comments on commit 436b08a

Please sign in to comment.