-
Notifications
You must be signed in to change notification settings - Fork 533
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 #1416 from swagger-api/issue#1398
fix for MultipleOf with negative value issue #1398
- Loading branch information
Showing
3 changed files
with
37 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
26 changes: 26 additions & 0 deletions
26
modules/swagger-parser-v3/src/test/resources/issue1398.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,26 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Swagger Petstore | ||
description: 'This is a sample server Petstore server' | ||
version: 1.0.0 | ||
servers: | ||
- url: http://mytestServer/{v1} | ||
variables: | ||
v2: | ||
default: 'd' | ||
paths: | ||
'/pet/{petId}': | ||
get: | ||
summary: Find pet by ID | ||
description: Returns a single pet | ||
parameters: | ||
- name: petId | ||
in: path | ||
description: ID of pet to return | ||
required: true | ||
schema: | ||
type : integer | ||
multipleOf: -10 | ||
responses: | ||
'200': | ||
description: successful operation |