grape-swagger-entity
grape-swagger-entity copied to clipboard
Hello! We noticed that the default type that gets added to Swagger docs is `string` for all fields unless otherwise specified, which is already good in most cases. However, when...
I've used Grape off-and-on since 2016 and I've almost always used this gem to help generate Swagger docs. I'm currently using it in a project and my team relies on...
Right now, the description of the model is automatically written as "{MODEL_NAME} Model" and put in the swagger docs. How do we override that?
Is there a way to add schema examples for a whole entity? See Schema Examples section in https://swagger.io/docs/specification/2-0/adding-examples/
versions: - grape (1.3.0) - grape-entity (0.7.1) - grape-swagger (1.0.0) - grape-swagger-entity (0.3.4) In below 1x1 relation, I set an desc 'Address...' in `address` field, but it doesn't render the...
This PR addresses the issue where `grape-swagger-entity` was not correctly parsing custom array documentation (e.g., `type: 'Array[Object]'`), leading to incorrect Swagger schema generation. The fix introduces a new `array_type?` method...
grape-swagger has support for `additionalProperties` for object-type parameters: https://github.com/ruby-grape/grape-swagger?tab=readme-ov-file#additional-properties It would be really nice if grape-swagger-entity also supported this for object-type fields in entities. ```ruby expose :string_to_string, documentation: { type:...