-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into regal-non-raw-regex-pattern
- Loading branch information
Showing
8 changed files
with
400 additions
and
30 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
68 changes: 68 additions & 0 deletions
68
assets/queries/openAPI/3.0/invalid_media_type_value/test/negative3.yaml
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,68 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Pet Store API | ||
version: 1.0.0 | ||
servers: | ||
- url: https://api.example.com/v1 | ||
paths: | ||
/pets: | ||
get: | ||
summary: Get a list of pets | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
example: { "pets": ["dog", "cat"] } | ||
post: | ||
summary: Add a new pet | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
example: "Fido" | ||
pattern: "^[A-Za-z]{1,20}$" | ||
species: | ||
type: string | ||
example: "dog" | ||
color: | ||
type: string | ||
enum: | ||
- brown | ||
- grey | ||
- black | ||
- white | ||
birthDate: | ||
type: string | ||
format: date | ||
weight: | ||
type: integer | ||
format: int32 | ||
someSubType: | ||
type: 'object' | ||
properties: | ||
content: | ||
type: string | ||
responses: | ||
'201': | ||
description: Pet added successfully | ||
/pets/{petId}: | ||
get: | ||
summary: Get details of a specific pet | ||
parameters: | ||
- name: petId | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
format: int64 | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
example: { "name": "Fido", "species": "dog" } |
108 changes: 108 additions & 0 deletions
108
assets/queries/openAPI/3.0/invalid_media_type_value/test/negative4.json
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,108 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "Pet Store API", | ||
"version": "1.0.0" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://api.example.com/v1" | ||
} | ||
], | ||
"paths": { | ||
"/pets": { | ||
"get": { | ||
"summary": "Get a list of pets", | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"content": { | ||
"application/json": { | ||
"example": { "pets": ["dog", "cat"] } | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"post": { | ||
"summary": "Add a new pet", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"example": "Fido", | ||
"pattern": "^[A-Za-z]{1,20}$" | ||
}, | ||
"species": { | ||
"type": "string", | ||
"example": "dog" | ||
}, | ||
"color": { | ||
"type": "string", | ||
"enum": [ | ||
"brown", | ||
"grey", | ||
"black", | ||
"white" | ||
] | ||
}, | ||
"birthDate": { | ||
"type": "string", | ||
"format": "date" | ||
}, | ||
"weight": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"someSubType": { | ||
"type": "object", | ||
"properties": { | ||
"content": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"description": "Pet added successfully" | ||
} | ||
} | ||
} | ||
}, | ||
"/pets/{petId}": { | ||
"get": { | ||
"summary": "Get details of a specific pet", | ||
"parameters": [ | ||
{ | ||
"name": "petId", | ||
"in": "path", | ||
"required": true, | ||
"schema": { | ||
"type": "integer", | ||
"format": "int64" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"content": { | ||
"application/json": { | ||
"example": { "name": "Fido", "species": "dog" } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
76 changes: 76 additions & 0 deletions
76
assets/queries/openAPI/3.0/invalid_media_type_value/test/negative5.yaml
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,76 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Pet Store API | ||
version: 1.0.0 | ||
servers: | ||
- url: https://api.example.com/v1 | ||
paths: | ||
/pets: | ||
get: | ||
summary: Get a list of pets | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
example: { "pets": ["dog", "cat"] } | ||
post: | ||
summary: Add a new pet | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
example: "Fido" | ||
pattern: "^[A-Za-z]{1,20}$" | ||
species: | ||
type: string | ||
example: "dog" | ||
color: | ||
type: string | ||
enum: | ||
- brown | ||
- grey | ||
- black | ||
- white | ||
birthDate: | ||
type: string | ||
format: date | ||
weight: | ||
type: integer | ||
format: int32 | ||
someSubType: | ||
type: 'object' | ||
properties: | ||
content: | ||
type: 'object' | ||
properties: | ||
content: | ||
type: object | ||
properties: | ||
key1: | ||
type: string | ||
key2: | ||
type: integer | ||
responses: | ||
'201': | ||
description: Pet added successfully | ||
/pets/{petId}: | ||
get: | ||
summary: Get details of a specific pet | ||
parameters: | ||
- name: petId | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
format: int64 | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
example: { "name": "Fido", "species": "dog" } |
Oops, something went wrong.