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

29 lines
633 B
YAML
Raw Normal View History

2020-06-10 06:25:21 +00:00
meta:
title: "#1797 - Missing `required: true` within a 3.0 Path Parameter Object"
input:
openapi: 3.0.0
info:
title: Foo OpenApi Spec
version: 1.0.0
paths:
/:
get:
parameters:
- name: id
in: path
allowEmptyValue: true
schema:
type: integer
format: int32
responses:
'200':
description: ok
output:
length: 1
match:
- level: error
message: |-
should have required property 'required'
missingProperty: required
path: [paths, /, get, parameters, "0"]
source: structural