spec/support/model_parsers/mock_parser.rb in grape-swagger-0.21.0 vs spec/support/model_parsers/mock_parser.rb in grape-swagger-0.22.0

- old
+ new

@@ -50,10 +50,11 @@ class QueryInputElement < OpenStruct; end class QueryInput < OpenStruct; end class ApiError < OpenStruct; end class SecondApiError < OpenStruct; end class RecursiveModel < OpenStruct; end + class DocumentedHashAndArrayModel < OpenStruct; end end end let(:swagger_definitions_models) do { @@ -74,9 +75,18 @@ 'description' => "it's a mock" } } }, 'UseResponse' => { + 'type' => 'object', + 'properties' => { + 'mock_data' => { + 'type' => 'string', + 'description' => "it's a mock" + } + } + }, + 'DocumentedHashAndArrayModel' => { 'type' => 'object', 'properties' => { 'mock_data' => { 'type' => 'string', 'description' => "it's a mock"