forked from APIDevTools/swagger-parser
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: surfacing all schema validation errors (#135)
- Loading branch information
Showing
3 changed files
with
59 additions
and
3 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
39 changes: 39 additions & 0 deletions
39
test/specs/validate-schema/invalid/multiple-invalid-properties.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,39 @@ | ||
openapi: 3.0.0 | ||
info: | ||
description: 'This is a sample server Petstore server.' | ||
version: 1.0.0 | ||
title: Swagger Petstore | ||
servers: | ||
- urll: http://petstore.swagger.io/v2 | ||
tags: | ||
- name: pet | ||
description: Everything about your Pets | ||
externalDocs: | ||
description: Find out more | ||
url: http://swagger.io | ||
paths: | ||
'/pet/findByStatus': | ||
get: | ||
tagss: | ||
- pet | ||
summary: Finds Pets by status | ||
description: Multiple status values can be provided with comma separated strings | ||
operationId: findPetsByStatus | ||
parameters: | ||
- name: status | ||
in: query | ||
description: Status values that need to be considered for filter | ||
required: true | ||
explode: true | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
enum: | ||
- available | ||
- pending | ||
- sold | ||
default: available | ||
responses: | ||
'200': | ||
description: OK |
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