You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an entity defined as follows which provides and example value of false
module Entities
class OrderEntity < Grape::Entity
expose :pre_order,
documentation: {
type: Grape::API::Boolean,
desc: 'true, if this order is a pre-order, otherwise false.',
example: false
}
end
end
When the swagger file is generated it seems to be ignoring the example and returns nothing.
"OrderEntity": {
"type": "object",
"properties": {
"pre_order": {
"type": "boolean",
"description": "true, if this order is a pre-order, otherwise false."
}
}
}
I should note that if I change the example to a string of "false" it does return the string correctly.
The text was updated successfully, but these errors were encountered:
I have an entity defined as follows which provides and example value of
false
When the swagger file is generated it seems to be ignoring the example and returns nothing.
I should note that if I change the example to a string of
"false"
it does return the string correctly.The text was updated successfully, but these errors were encountered: