From aa743c0aa419484bfd9a2291891eba6298654ae4 Mon Sep 17 00:00:00 2001 From: Stephan Jaensch Date: Fri, 17 May 2019 09:24:58 +0200 Subject: [PATCH] Add missing object type to 3.0 examples --- examples/v3.0/callback-example.yaml | 1 + examples/v3.0/petstore-expanded.yaml | 5 ++++- examples/v3.0/petstore.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/v3.0/callback-example.yaml b/examples/v3.0/callback-example.yaml index 1622bd06b1..262b8df518 100644 --- a/examples/v3.0/callback-example.yaml +++ b/examples/v3.0/callback-example.yaml @@ -43,6 +43,7 @@ paths: content: application/json: schema: + type: object properties: timestamp: type: string diff --git a/examples/v3.0/petstore-expanded.yaml b/examples/v3.0/petstore-expanded.yaml index d7533318c6..8634626370 100644 --- a/examples/v3.0/petstore-expanded.yaml +++ b/examples/v3.0/petstore-expanded.yaml @@ -127,7 +127,8 @@ components: Pet: allOf: - $ref: '#/components/schemas/NewPet' - - required: + - type: object + required: - id properties: id: @@ -135,6 +136,7 @@ components: format: int64 NewPet: + type: object required: - name properties: @@ -144,6 +146,7 @@ components: type: string Error: + type: object required: - code - message diff --git a/examples/v3.0/petstore.yaml b/examples/v3.0/petstore.yaml index 09941de971..907e44acde 100644 --- a/examples/v3.0/petstore.yaml +++ b/examples/v3.0/petstore.yaml @@ -82,6 +82,7 @@ paths: components: schemas: Pet: + type: object required: - id - name @@ -98,6 +99,7 @@ components: items: $ref: "#/components/schemas/Pet" Error: + type: object required: - code - message