Skip to content

Commit 6c8e47b

Browse files
committed
Improved coverage
1 parent abc3e30 commit 6c8e47b

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
openapi: 3.2.0
2+
info:
3+
summary: Testing jsonSchemaDialect
4+
title: My API
5+
version: 1.0.0
6+
license:
7+
name: Apache 2.0
8+
identifier: Apache-2.0
9+
jsonSchemaDialect: https://some/other/dialect
10+
components:
11+
schemas:
12+
WithDollarSchema:
13+
$id: "locked-metaschema"
14+
$schema: https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS
15+
paths: {}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
openapi: 3.2.0
2+
info:
3+
title: API
4+
version: 1.0.0
5+
paths:
6+
/user:
7+
parameters:
8+
- in: querystring
9+
name: json
10+
content:
11+
application/json:
12+
schema:
13+
# Allow an arbitrary JSON object to keep
14+
# the example simple
15+
type: object
16+
# DEPRECATED: don't use example keyword inside Schema Object
17+
example: {
18+
"numbers": [1, 2],
19+
"flag": null
20+
}

tests/schema/pass/link-object-examples.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ paths:
4545
operationRef: https://na2.gigantic-server.com/#/paths/~12.0~1repositories~1%7Busername%7D/get
4646
parameters:
4747
username: $response.body#/username
48+
withBody:
49+
operationId: queryUserWithBody
50+
requestBody:
51+
userId: $request.path.id
4852
# the path item of the linked operation
4953
/users/{userid}/address:
5054
parameters:

tests/schema/pass/mega.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ info:
66
license:
77
name: Apache 2.0
88
identifier: Apache-2.0
9+
x-tensions: can appear in many places
910
paths:
1011
/:
1112
get:

0 commit comments

Comments
 (0)