feat: apply cumulative update to address various issues (#10324)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
|
||||
paths:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Demo API
|
||||
description: First test
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
paths:
|
||||
/some/route:
|
||||
@@ -9,4 +9,4 @@ paths:
|
||||
requestBody: {}
|
||||
responses:
|
||||
'200':
|
||||
description: Description
|
||||
description: Description
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: test
|
||||
version: "0.1"
|
||||
@@ -21,4 +21,4 @@ paths:
|
||||
type: string
|
||||
responses:
|
||||
default:
|
||||
description: ok
|
||||
description: ok
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
description: Test API
|
||||
version: v1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
info:
|
||||
description: "A sample API for "
|
||||
version: "1.0.0"
|
||||
@@ -32,4 +32,4 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
type: object
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
info:
|
||||
description: "A sample API for "
|
||||
version: "1.0.0"
|
||||
@@ -23,11 +23,11 @@ paths:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
type: object
|
||||
responses:
|
||||
'200':
|
||||
description: Status message
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
type: object
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
paths:
|
||||
/aev:
|
||||
get:
|
||||
parameters:
|
||||
parameters:
|
||||
- name: param
|
||||
in: query
|
||||
allowEmptyValue: true
|
||||
@@ -23,4 +23,4 @@ paths:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: ok
|
||||
description: ok
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
paths:
|
||||
/:
|
||||
@@ -20,4 +20,4 @@ paths:
|
||||
items:
|
||||
type: string
|
||||
example:
|
||||
- "hi"
|
||||
- "hi"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
info:
|
||||
title: Required parameter missing, doesn't block request from executing.
|
||||
version: '1'
|
||||
openapi: 3.0.0
|
||||
servers:
|
||||
openapi: 3.0.4
|
||||
servers:
|
||||
- url: http://httpbin.org/anything
|
||||
paths:
|
||||
/foos:
|
||||
@@ -24,4 +24,4 @@ paths:
|
||||
required: true # Note this doesn't have an impact
|
||||
responses:
|
||||
default:
|
||||
description: ok
|
||||
description: ok
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
servers: []
|
||||
info:
|
||||
description: sdf
|
||||
@@ -9,8 +9,8 @@ paths:
|
||||
get:
|
||||
tags:
|
||||
- default
|
||||
summary:
|
||||
whatever: 123
|
||||
summary:
|
||||
whatever: 123
|
||||
operationId: objectSummary
|
||||
responses:
|
||||
'405':
|
||||
@@ -21,4 +21,4 @@ paths:
|
||||
operationId: noSummary
|
||||
responses:
|
||||
'405':
|
||||
description: Invalid input
|
||||
description: Invalid input
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
info:
|
||||
title: Testcase API
|
||||
version: 2.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Response without a schema
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: test
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: test
|
||||
description: Nullable model itself
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: test
|
||||
description: Nullable object in model property
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: OAS 3.0 sample with entries as property name
|
||||
version: 0.1.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "Swagger Test"
|
||||
version: "1.0.0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: OAS 3.0 sample with multiple servers
|
||||
version: 0.1.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "OAS 3.0 sample with Object Model deprecated: true"
|
||||
version: 0.1.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "OAS 3.0 sample with Object Model deprecated: true"
|
||||
version: 0.1.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Example Swagger
|
||||
version: '1.0'
|
||||
@@ -22,7 +22,7 @@ paths:
|
||||
properties:
|
||||
x:
|
||||
type: string
|
||||
example:
|
||||
example:
|
||||
x: what the f
|
||||
examples:
|
||||
x2:
|
||||
@@ -46,7 +46,7 @@ paths:
|
||||
properties:
|
||||
x:
|
||||
type: string
|
||||
example:
|
||||
example:
|
||||
x: what the f
|
||||
example:
|
||||
x: should be xml
|
||||
x: should be xml
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Example Swagger
|
||||
version: '1.0'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
description: Test API
|
||||
version: v1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: XML array schema with array-level example
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "This is an example highlighting a display issue related to `tags` and `description` entries therein. It contains tag descriptions with & without externalDocs."
|
||||
version: 1.0.0
|
||||
@@ -25,4 +25,4 @@ paths:
|
||||
- "bar"
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
description: OK
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Example Swagger with required default body parameter
|
||||
version: 1.0.0
|
||||
@@ -25,4 +25,4 @@ components:
|
||||
properties:
|
||||
bodyParameter:
|
||||
type: string
|
||||
default: default
|
||||
default: default
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Bearer auth test
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
|
||||
info:
|
||||
version: "1.0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
paths:
|
||||
/:
|
||||
@@ -9,7 +9,7 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: a pet to be returned
|
||||
content:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
@@ -21,7 +21,7 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: a pet to be returned
|
||||
content:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
@@ -41,7 +41,7 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: a pet to be returned
|
||||
content:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
@@ -52,7 +52,7 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: a pet to be returned
|
||||
content:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
type: object
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
|
||||
info:
|
||||
title: External Docs
|
||||
version: "1"
|
||||
|
||||
|
||||
externalDocs:
|
||||
description: Read external docs
|
||||
url: http://swagger.io
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
openapi: 3.1.0
|
||||
components:
|
||||
schemas:
|
||||
Test:
|
||||
examples:
|
||||
- 1
|
||||
- - 2
|
||||
- prop: 3
|
||||
@@ -0,0 +1,10 @@
|
||||
openapi: 3.1.0
|
||||
components:
|
||||
schemas:
|
||||
ExtensionKeywords:
|
||||
primitiveExtension: 1
|
||||
arrayExtension:
|
||||
- 2
|
||||
objectExtension:
|
||||
prop: 3
|
||||
default: default value
|
||||
@@ -0,0 +1,9 @@
|
||||
openapi: 3.1.0
|
||||
components:
|
||||
schemas:
|
||||
UniqueItems:
|
||||
uniqueItems: true
|
||||
UniqueItemsAndRangeConstraint:
|
||||
uniqueItems: true
|
||||
minItems: 1
|
||||
maxItems: 5
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: OpenAPI 3.0 License with only url present
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
@@ -28,7 +28,7 @@ components:
|
||||
type: boolean
|
||||
default: false
|
||||
xml:
|
||||
name: Order
|
||||
name: Order
|
||||
User:
|
||||
type: object
|
||||
properties:
|
||||
@@ -52,7 +52,7 @@ components:
|
||||
format: int32
|
||||
description: User Status
|
||||
xml:
|
||||
name: User
|
||||
name: User
|
||||
Pet:
|
||||
type: object
|
||||
required:
|
||||
@@ -90,4 +90,3 @@ components:
|
||||
- sold
|
||||
xml:
|
||||
name: Pet
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "Multiple Examples: Core Document"
|
||||
description: |
|
||||
@@ -82,7 +82,7 @@ paths:
|
||||
$ref: '#/components/examples/StringExampleC'
|
||||
/Number:
|
||||
post:
|
||||
parameters:
|
||||
parameters:
|
||||
- in: query
|
||||
name: message
|
||||
required: true
|
||||
@@ -142,7 +142,7 @@ paths:
|
||||
$ref: '#/components/examples/NumberExampleC'
|
||||
/Boolean:
|
||||
post:
|
||||
parameters:
|
||||
parameters:
|
||||
- in: query
|
||||
name: message
|
||||
required: true
|
||||
@@ -194,7 +194,7 @@ paths:
|
||||
$ref: '#/components/examples/BooleanExampleB'
|
||||
/Array:
|
||||
post:
|
||||
parameters:
|
||||
parameters:
|
||||
- in: query
|
||||
name: message
|
||||
required: true
|
||||
@@ -239,7 +239,7 @@ paths:
|
||||
$ref: '#/components/examples/ArrayExampleC'
|
||||
/Object:
|
||||
post:
|
||||
parameters:
|
||||
parameters:
|
||||
- in: query
|
||||
name: data
|
||||
required: true
|
||||
@@ -296,11 +296,11 @@ components:
|
||||
summary: Don't just string me along...
|
||||
description: |
|
||||
A string in C is actually a character array. As an individual character variable can store only one character, we need an array of characters to store strings. Thus, in C string is stored in an array of characters. Each character in a string occupies one location in an array. The null character ‘\0’ is put after the last character. This is done so that program can tell when the end of the string has been reached.
|
||||
|
||||
For example, the string “Hello” is stored as follows...
|
||||
|
||||
|
||||
For example, the string “Hello” is stored as follows...
|
||||
|
||||

|
||||
|
||||
|
||||
Since the string contains 5 characters. it requires a character array of size 6 to store it. the last character in a string is always a NULL('\0') character. Always keep in mind that the '\0' is not included in the length if the string, so here the length of the string is 5 only. Notice above that the indexes of the string starts from 0 not one so don't confuse yourself with index and length of string.
|
||||
|
||||
Thus, in C, a string is a one-dimensional array of characters terminated a null character. The terminating null character is important. In fact, a string not terminated by ‘\0’ is not really a string, but merely a collection of characters.
|
||||
@@ -311,11 +311,11 @@ components:
|
||||
A pangram (Greek: παν γράμμα, pan gramma, "every letter") or holoalphabetic sentence is a sentence using every letter of a given alphabet at least once. Pangrams have been used to display typefaces, test equipment, and develop skills in handwriting, calligraphy, and keyboarding.
|
||||
|
||||
The best-known English pangram is "The quick brown fox jumps over the lazy dog". It has been used since at least the late 19th century, was utilized by Western Union to test Telex / TWX data communication equipment for accuracy and reliability, and is now used by a number of computer programs (most notably the font viewer built into Microsoft Windows) to display computer fonts.
|
||||
|
||||
|
||||
Pangrams exist in practically every alphabet-based language. An example from German is _Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich_, which contains all letters, including every umlaut (ä, ö, ü) plus the ß. It has been used since before 1800.
|
||||
|
||||
|
||||
In a sense, the pangram is the opposite of the lipogram, in which the aim is to omit one or more letters.
|
||||
|
||||
|
||||
A perfect pangram contains every letter of the alphabet only once and
|
||||
can be considered an anagram of the alphabet. The only perfect pangrams
|
||||
that are known either use abbreviations, such as "Mr Jock, TV quiz PhD,
|
||||
@@ -331,18 +331,18 @@ components:
|
||||
summary: "World population"
|
||||
description: |
|
||||
In demographics, the world population is the total number of humans currently living, and was estimated to have reached 7.7 billion people as of April 2019. It took over 200,000 years of human history for the world's population to reach 1 billion; and only 200 years more to reach 7 billion.
|
||||
|
||||
|
||||
World population has experienced continuous growth since the end of the Great Famine of 1315–1317 and the Black Death in 1350, when it was near 370 million. The highest population growth rates – global population increases above 1.8% per year – occurred between 1955 and 1975, peaking to 2.1% between 1965 and 1970. The growth rate has declined to 1.2% between 2010 and 2015 and is projected to decline further in the course of the 21st century. However, the global population is still growing and is projected to reach about 10 billion in 2050 and more than 11 billion in 2100.
|
||||
|
||||
|
||||
Total annual births were highest in the late 1980s at about 139 million, and as of 2011 were expected to remain essentially constant at a level of 135 million, while deaths numbered 56 million per year and were expected to increase to 80 million per year by 2040. The median age of the world's population was estimated to be 30.4 years in 2018.
|
||||
NumberExampleB:
|
||||
value: 9007199254740991
|
||||
summary: "Number.MAX_SAFE_INTEGER"
|
||||
description: |
|
||||
The `MAX_SAFE_INTEGER` constant has a value of `9007199254740991` (9,007,199,254,740,991 or ~9 quadrillion). The reasoning behind that number is that JavaScript uses double-precision floating-point format numbers as specified in IEEE 754 and can only safely represent numbers between `-(2^53 - 1)` and `2^53 - 1`.
|
||||
|
||||
|
||||
Safe in this context refers to the ability to represent integers exactly and to correctly compare them. For example, `Number.MAX_SAFE_INTEGER + 1 === Number.MAX_SAFE_INTEGER + 2` will evaluate to `true`, which is mathematically incorrect. See `Number.isSafeInteger()` for more information.
|
||||
|
||||
|
||||
Because `MAX_SAFE_INTEGER` is a static property of `Number`, you always use it as `Number.MAX_SAFE_INTEGER`, rather than as a property of a `Number` object you created.
|
||||
NumberExampleC:
|
||||
# `description` and `summary` intentionally omitted
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Test
|
||||
description: 'Test'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
servers: []
|
||||
info:
|
||||
version: "1.0.0"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"openapi": "3.0.2",
|
||||
"openapi": "3.0.4",
|
||||
"info": {
|
||||
"title": "Clinical Study",
|
||||
"description": "The Clinical Study interface enables an external system to read study data and demand forecast data, add a study entity, and submit the results of enrollment forecast calculations.",
|
||||
@@ -62958,4 +62958,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "Swagger Test"
|
||||
version: "1.0.0"
|
||||
servers:
|
||||
- url: https://api.example.com/v1
|
||||
components:
|
||||
schemas:
|
||||
User:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
readOnly: true
|
||||
x-primitive-extension: test
|
||||
x-primitive-objectExtension:
|
||||
prop:
|
||||
test: test,
|
||||
nested:
|
||||
test: test,
|
||||
nested:
|
||||
test: test
|
||||
x-object-extension: 1
|
||||
x-object-objectExtension:
|
||||
prop:
|
||||
test: test,
|
||||
nested:
|
||||
test: test,
|
||||
nested:
|
||||
test: test
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Switching between multiple content-type test
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
servers:
|
||||
- url: /test-url-switch-1
|
||||
- url: /test-url-switch-2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
servers:
|
||||
- url: /test-url-1
|
||||
- url: /test-url-2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.3
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Example app
|
||||
description: This is my test applicaiton
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Request Body Example
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/object:
|
||||
post:
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
object:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayOfObjects:
|
||||
post:
|
||||
requestBody:
|
||||
content:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
arrayOfObjects:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"openapi": "3.0.0",
|
||||
"openapi": "3.0.4",
|
||||
"info": {
|
||||
"version": "1.0.0",
|
||||
"title": "XML definition with oneOf & anyOf",
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
openapi: 3.1.0
|
||||
info:
|
||||
title: Test
|
||||
description: 'Test'
|
||||
license:
|
||||
name: 'Apache 2.0'
|
||||
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
|
||||
version: '1.0'
|
||||
servers:
|
||||
- url: http://petstore.swagger.io/v1
|
||||
components:
|
||||
schemas:
|
||||
Pet:
|
||||
title: My Pet
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
name:
|
||||
type: string
|
||||
tag:
|
||||
type: string
|
||||
discriminator:
|
||||
propertyName: id
|
||||
mapping:
|
||||
x-primitiveExtension: 1
|
||||
x-arrayExtension:
|
||||
- 2
|
||||
x-objectExtension:
|
||||
prop: 3
|
||||
default: default value
|
||||
Object:
|
||||
type: object
|
||||
externalDocs:
|
||||
description: Object Docs
|
||||
url: http://swagger.io
|
||||
x-primitiveExtension: 1
|
||||
x-arrayExtension:
|
||||
- 2
|
||||
x-objectExtension:
|
||||
prop: 3
|
||||
default: default value
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
Book:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
title:
|
||||
type: string
|
||||
author:
|
||||
type: string
|
||||
xml:
|
||||
prefix: "smp"
|
||||
namespace: "http://example.com/schema"
|
||||
x-primitiveExtension: 1
|
||||
x-arrayExtension:
|
||||
- 2
|
||||
x-objectExtension:
|
||||
prop: 3
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
openapi: 3.1.0
|
||||
info:
|
||||
title: OAS31 Example
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/objectTypeUnion:
|
||||
post:
|
||||
parameters:
|
||||
- name: typeUnion
|
||||
in: query
|
||||
schema:
|
||||
type: [object, integer]
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayTypeUnion:
|
||||
post:
|
||||
parameters:
|
||||
- name: typeUnion
|
||||
in: query
|
||||
schema:
|
||||
type: [array, integer]
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayItemTypeUnion:
|
||||
post:
|
||||
parameters:
|
||||
- name: itemTypeUnion
|
||||
in: query
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: [object, integer]
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayTypeAndItemTypeUnion:
|
||||
post:
|
||||
parameters:
|
||||
- name: typeAndItemTypeUnion
|
||||
in: query
|
||||
schema:
|
||||
type: [array, integer]
|
||||
items:
|
||||
type: [object, string]
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
@@ -0,0 +1,84 @@
|
||||
openapi: 3.1.0
|
||||
info:
|
||||
title: Request Body Example
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/objectTypeUnion:
|
||||
post:
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
objectTypeUnion:
|
||||
type: [object, integer]
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayTypeUnion:
|
||||
post:
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
arrayTypeUnion:
|
||||
type: [array, integer]
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayItemTypeUnion:
|
||||
post:
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
arrayItemTypeUnion:
|
||||
type: array
|
||||
items:
|
||||
type: [object, integer]
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayTypeAndItemTypeUnion:
|
||||
post:
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
arrayTypeAndItemTypeUnion:
|
||||
type: [array, integer]
|
||||
items:
|
||||
type: [object, string]
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
openapi: 3.1.0
|
||||
components:
|
||||
schemas:
|
||||
Expansion:
|
||||
properties:
|
||||
prop1:
|
||||
properties:
|
||||
prop2:
|
||||
properties:
|
||||
prop3:
|
||||
properties:
|
||||
prop4:
|
||||
type: string
|
||||
xml:
|
||||
x-extension:
|
||||
prop1:
|
||||
prop2:
|
||||
prop3:
|
||||
prop4: test
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: test
|
||||
version: "1.0.0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Example Swagger
|
||||
version: '1.0'
|
||||
@@ -27,7 +27,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: number
|
||||
enum:
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
description: debug flag
|
||||
@@ -60,4 +60,4 @@ paths:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: Some
|
||||
description: Some
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Parameter Schema Example
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/object:
|
||||
post:
|
||||
parameters:
|
||||
- in: query
|
||||
name: objectParam
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
/arrayOfObjects:
|
||||
post:
|
||||
parameters:
|
||||
- in: query
|
||||
name: arrayOfObjectsParam
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
paths:
|
||||
/:
|
||||
get:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
servers:
|
||||
- url: /v3
|
||||
info:
|
||||
@@ -7,10 +7,10 @@ info:
|
||||
Swagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
|
||||
You can now help us improve the API whether it's by making changes to the definition itself or to the code.
|
||||
That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
|
||||
|
||||
|
||||
Some useful links:
|
||||
- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
|
||||
- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
|
||||
- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
|
||||
version: 1.0.5-SNAPSHOT
|
||||
title: Swagger Petstore - OpenAPI 3.0
|
||||
termsOfService: 'http://swagger.io/terms/'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "Request body file upload"
|
||||
description: |-
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.3
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: multipart/form-data schema object
|
||||
version: 0.0.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.3
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: asd
|
||||
version: 0.0.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
paths:
|
||||
/:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: "Schema in Parameters"
|
||||
description: |-
|
||||
@@ -205,7 +205,7 @@ paths:
|
||||
components:
|
||||
/petOwner/createWithList:
|
||||
post:
|
||||
tags:
|
||||
tags:
|
||||
- petOwner
|
||||
summary: Creates list of pet owners with given input array
|
||||
operationId: petOwnerCreateWithList
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
description: No type for schema
|
||||
version: "1"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
|
||||
info:
|
||||
version: 1.0.0
|
||||
@@ -6,7 +6,7 @@ info:
|
||||
|
||||
paths:
|
||||
/foo:
|
||||
get:
|
||||
get:
|
||||
description: Has date without quotes
|
||||
responses:
|
||||
'200':
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: json syntax highlighting
|
||||
description: sample OAS 3 definition to test syntax highlighting
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.2
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: try it out enabled test
|
||||
version: 0.0.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
version: 1.0.0
|
||||
title: Test API
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
info:
|
||||
title: Two
|
||||
@@ -9,4 +9,4 @@ paths:
|
||||
summary: an operation
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
description: OK
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Server Variables - One
|
||||
description: sample OAS 3 definition to test server variables with urls
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Server Variables - Two
|
||||
description: sample OAS 3 definition to test server variables with urls
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Webhooks does not exist in OpenAPI 3.0 and should not render
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
info:
|
||||
version: 1.0.0
|
||||
title: Swagger Petstore
|
||||
@@ -138,12 +138,12 @@ components:
|
||||
|
||||
NewPet:
|
||||
required:
|
||||
- name
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
tag:
|
||||
type: string
|
||||
type: string
|
||||
|
||||
Error:
|
||||
required:
|
||||
@@ -158,7 +158,7 @@ components:
|
||||
securitySchemes:
|
||||
Petstore:
|
||||
type: oauth2
|
||||
flows:
|
||||
flows:
|
||||
implicit:
|
||||
authorizationUrl: https://example.com/api/oauth/dialog
|
||||
scopes:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.0
|
||||
openapi: 3.0.4
|
||||
info:
|
||||
title: Test anonymous operations
|
||||
version: 1.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
openapi: "3.0.0"
|
||||
openapi: "3.0.4"
|
||||
|
||||
info:
|
||||
title: Sequential Import Chaining
|
||||
|
||||
Reference in New Issue
Block a user