Ekapp/swagger/test/unit/plugins/json-schema-validator/test-documents/1808.yaml

37 lines
750 B
YAML
Raw Normal View History

2020-06-10 06:25:21 +00:00
meta:
title: "#1808 - Misleading errors for a Responses Object within Operation Object"
cases:
- name: in OpenAPI 2.0
input:
swagger: "2.0"
info:
version: 0.0.0
title: test
paths:
/:
get:
responses: {}
output:
length: 1
match:
- level: error
message: should define at least one response
path: [paths, /, get, responses]
source: structural
- name: in OpenAPI 3.0
input:
openapi: "3.0.0"
info:
version: 0.0.0
title: test
paths:
/:
get:
responses: {}
output:
length: 1
match:
- level: error
message: should define at least one response
path: [paths, /, get, responses]
source: structural