add support for oneOf anyOf allOf

This commit is contained in:
Greg Myers
2020-04-05 00:36:25 +01:00
parent d644a91da5
commit 965f14406f
4 changed files with 100 additions and 18 deletions

View File

@@ -52,9 +52,19 @@ RSpec.configure do |config|
id: { type: 'integer' },
title: { type: 'string' },
content: { type: 'string', 'x-nullable': true },
thumbnail: { type: 'string'}
thumbnail: { type: 'string', 'x-nullable': true}
},
required: [ 'id', 'title', 'content', 'thumbnail' ]
required: [ 'id', 'title' ]
},
flexible_blog: {
type: 'object',
properties: {
id: { type: 'integer' },
headline: { type: 'string' },
text: { type: 'string', nullable: true },
thumbnail: { type: 'string', nullable: true }
},
required: ['id', 'headline']
}
},
securityDefinitions: {