Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
magni- committed Apr 13, 2024
1 parent 6384c57 commit 8d9e1c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#### Fixes

* [#67](https://github.com/ruby-grape/grape-swagger-entity/pull/67): Various build updates - [@mscrivo](https://github.com/mscrivo).
* [#68](https://github.com/ruby-grape/grape-swagger-entity/pull/68): Properly render `example` for array exposure done using another entity - [@magni-](https://github.com/magni-).
* Your contribution here.

### 0.5.3 (2024/02/02)
Expand Down
13 changes: 6 additions & 7 deletions lib/grape-swagger/entity/attribute_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ def initialize(endpoint)
end

def call(entity_options)
param =
if (entity_model = model_from(entity_options))
name = GrapeSwagger::Entity::Helper.model_name(entity_model, endpoint)
entity_model_type(name, entity_options)
else
data_type_from(entity_options)
end
param = if (entity_model = model_from(entity_options))
name = GrapeSwagger::Entity::Helper.model_name(entity_model, endpoint)
entity_model_type(name, entity_options)
else
data_type_from(entity_options)
end

documentation = entity_options[:documentation]
return param if documentation.nil?
Expand Down

0 comments on commit 8d9e1c5

Please sign in to comment.