Skip to content
Permalink
Browse files

Fix missing schema type in YAML example spec (#1923)

* Fix missing schema type in YAML example spec

* Moved type: object into allOf
  • Loading branch information...
sjaensch authored and darrelmiller committed May 16, 2019
1 parent 8a387ac commit f1852bd4bd89bf96ed929179f9f52cfa6621accb
Showing with 5 additions and 0 deletions.
  1. +3 −0 examples/v2.0/yaml/petstore-expanded.yaml
  2. +2 −0 examples/v2.0/yaml/petstore.yaml
@@ -113,12 +113,14 @@ definitions:
- $ref: '#/definitions/NewPet'
- required:
- id
type: "object"
properties:
id:
type: integer
format: int64

NewPet:
type: "object"
required:
- name
properties:
@@ -128,6 +130,7 @@ definitions:
type: string

Error:
type: "object"
required:
- code
- message
@@ -74,6 +74,7 @@ paths:
$ref: '#/definitions/Error'
definitions:
Pet:
type: "object"
required:
- id
- name
@@ -90,6 +91,7 @@ definitions:
items:
$ref: '#/definitions/Pet'
Error:
type: "object"
required:
- code
- message

0 comments on commit f1852bd

Please sign in to comment.
You can’t perform that action at this time.