-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #712 from swagger-api/fix_pattern_2_0
fix pattern deserializer
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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
33 changes: 33 additions & 0 deletions
33
modules/swagger-parser-v3/src/test/resources/testPattern.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,33 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: OpenAPI Test | ||
description: Simple test | ||
license: | ||
name: Apache-2.0 | ||
url: http://www.apache.org/licenses/LICENSE-2.0.html | ||
version: 1.0.0 | ||
servers: | ||
- url: http://localhost:9999/v2 | ||
paths: | ||
/ping: | ||
post: | ||
tags: | ||
- someTag | ||
summary: test | ||
description: test it | ||
operationId: pingOp | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/SomeObj' | ||
required: true | ||
responses: | ||
200: | ||
description: OK | ||
content: {} | ||
components: | ||
schemas: | ||
SomeObj: | ||
type: string | ||
pattern: ^[A-Z]+$ |