-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as defined in https://json-schema.org/draft/2020-12/json-schema-core#section-4.3.2 true: {} false: {not: {}} previously boolean schemas were possible with additionalProperties and there was no support for the `expanded` version of boolean schemas
- Loading branch information
Showing
9 changed files
with
164 additions
and
26 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
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
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
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
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
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
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
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,66 @@ | ||
openapi: 3.0.0 | ||
info: | ||
version: 1.0.0 | ||
title: Example | ||
license: | ||
name: MIT | ||
description: | | ||
https://github.com/swagger-api/swagger-parser/issues/1770 | ||
servers: | ||
- url: http://api.example.xyz/v1 | ||
paths: | ||
/person/display/{personId}: | ||
get: | ||
parameters: | ||
- name: personId | ||
in: path | ||
required: true | ||
description: The id of the person to retrieve | ||
schema: | ||
type: string | ||
operationId: list | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/BooleanTrue" | ||
components: | ||
schemas: | ||
BooleanTrue: true | ||
ArrayWithTrueItems: | ||
type: array | ||
items: true | ||
ObjectWithTrueProperty: | ||
properties: | ||
someProp: true | ||
ObjectWithTrueAdditionalProperties: | ||
additionalProperties: true | ||
AllOfWithTrue: | ||
allOf: | ||
- true | ||
AnyOfWithTrue: | ||
anyOf: | ||
- true | ||
OneOfWithTrue: | ||
oneOf: | ||
- true | ||
NotWithTrue: | ||
not: true | ||
UnevaluatedItemsTrue: | ||
unevaluatedItems: true | ||
UnevaluatedPropertiesTrue: | ||
unevaluatedProperties: true | ||
PrefixitemsWithNoAdditionalItemsAllowed: | ||
$schema: https://json-schema.org/draft/2020-12/schema | ||
prefixItems: | ||
- {} | ||
- {} | ||
- {} | ||
items: false | ||
PrefixitemsWithBooleanSchemas: | ||
$schema: https://json-schema.org/draft/2020-12/schema | ||
prefixItems: | ||
- true | ||
- false |
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