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

29 lines
706 B
YAML
Raw Normal View History

2020-06-10 06:25:21 +00:00
meta:
title: "#1853 - OpenAPI 3.0 path parameter missing both `schema` and `content`"
input:
openapi: 3.0.0
info:
title: Contact List API
description: CRUD a simple Contact item.
version: '0.1'
paths:
/:
get:
summary: Get a single contact by Id
operationId: getContactById
responses:
"200":
description: ok
parameters:
- name: contactId
in: path
description: ID of contact to return
required: true
output:
length: 1
match:
- level: error
message: should have either a `schema` or `content` property
path: [paths, /, get, parameters, "0"]
source: structural