Adds anyOf support to requestBody

This commit is contained in:
Jay Danielian
2019-07-20 13:50:38 -04:00
parent eb4e6045c5
commit cd348b53f8
6 changed files with 145 additions and 0 deletions

View File

@@ -57,6 +57,16 @@ RSpec.configure do |config|
thumbnail: { type: 'string' }
},
required: %w[id title content thumbnail]
},
flexible_blog: {
type: 'object',
properties: {
id: { type: 'integer' },
headline: { type: 'string' },
text: { type: 'string', nullable: true },
thumbnail: { type: 'string' }
},
required: %w[id headline thumbnail]
}
},
securitySchemes: {