lib/rspec/rails/api/open_api_renderer.rb in rspec-rails-api-0.6.1 vs lib/rspec/rails/api/open_api_renderer.rb in rspec-rails-api-0.6.2

- old
+ new

@@ -239,10 +239,10 @@ property[:items] = { type: field.attributes } elsif field.type == :object && field.attributes.is_a?(Symbol) property = { '$ref' => "#/components/schemas/#{field.attributes}" } elsif field.type == :array && field.attributes.is_a?(Symbol) property = { type: :array, items: { '$ref' => "#/components/schemas/#{field.attributes}" } } - elsif field.type == :array + elsif field.type == :array && field.attributes property = { type: :array, items: process_entity(field.attributes) } end required.push name unless field.required == false