Skip to content

Commit 427c88b

Browse files
committed
Bring schema test coverage back to 100%
Test cases for - Response Object with summary - $self - Parameter Object with in:querystring
1 parent 6ecd50e commit 427c88b

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

tests/schema/pass/info-object-example.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# including External Documentation Object Example
22
openapi: 3.2.0
3+
$self: https://example.com/openapi
34
info:
45
title: Example Pet Store App
56
summary: A pet store manager.

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,18 @@ paths:
5151
lat:
5252
type: number
5353
long:
54-
type: number
54+
type: number
55+
/user:
56+
parameters:
57+
- in: querystring
58+
name: json
59+
content:
60+
application/json:
61+
schema:
62+
# Allow an arbitrary JSON object to keep
63+
# the example simple
64+
type: object
65+
example: {
66+
"numbers": [1, 2],
67+
"flag": null
68+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ info:
55
components:
66
responses:
77
complex-object-array:
8+
summary: Complex object array
89
description: A complex object array response
910
content:
1011
application/json:

0 commit comments

Comments
 (0)