swagger-blocks
swagger-blocks copied to clipboard
Trying to layout a request definition in swagger-blocks
what would be the equivalent in swagger-blocks
extension:
type: array
items:
oneOf:
- $ref: '#/definitions/Race'
- $ref: '#/definitions/Ethnicity'
I've tried
property :extension do
key :type, :array
items do
key :type, :object
oneOf do
key :'$ref', :Race
key :'$ref', :Ethnicity
key :'$ref', :Ethnicity
end
end
end
but get the following exception
undefined method `oneOf' for #<Swagger::Blocks::Nodes::ItemsNode
