swagger-blocks
swagger-blocks copied to clipboard
Can't use property :key
I'm trying to implement a schema with key and value properties, but I getting an error.
schema Object, :Sample do
property(:key) { key :type, :string }
value do
type :integer
minimum 1
maximum 100
end
end

schema Object, :Sample do
key { key :type, :string }
value { key :type, :integer }
end

Is there a way how to achieve this?