[Ruby] Fix Ruby client to prevent Rubocop's rule violations (#2100) (#2102)

* [Ruby] Delete empty lines and trailing newline in template to prevent Rubocop's rule violation (#2100)

* [Ruby] update samples of Ruby client (#2100)
This commit is contained in:
Akira Tanimura 2019-02-10 09:29:34 +09:00 committed by Akihito Nakano
parent 20d5adcdd5
commit 7dcffff20b
192 changed files with 665 additions and 1336 deletions

View File

@ -188,7 +188,9 @@ module {{moduleName}}
end
return data, status_code, headers
end
{{^-last}}
{{/-last}}
{{/operation}}
end
{{/operations}}

View File

@ -109,4 +109,4 @@
else
value
end
end
end

View File

@ -17,4 +17,4 @@
raise "Invalid ENUM value #{value} for class #{{{classname}}}" if constantValues.empty?
value
end
end
end

View File

@ -371,4 +371,4 @@
end
{{> base_object}}
end
end

View File

@ -67,6 +67,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -187,7 +187,5 @@ module Petstore
value
end
end
end
end

View File

@ -1,23 +1,12 @@
=begin
#Swagger Petstore */ ' \" =_end -- \\r\\n \\n \\r
#OpenAPI Petstore */ ' \" =_end -- \\r\\n \\n \\r
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =_end --
OpenAPI spec version: 1.0.0 */ ' \" =_end -- \\r\\n \\n \\r
Contact: apiteam@swagger.io */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contact: something@something.abc */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -25,7 +14,7 @@ require 'spec_helper'
require 'json'
# Unit tests for Petstore::FakeApi
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'FakeApi' do
before do
@ -45,12 +34,12 @@ describe 'FakeApi' do
# unit tests for test_code_inject____end__rn_n_r
# To test code injection */ ' \" =_end -- \\r\\n \\n \\r
#
# To test code injection */ ' \" =_end -- \\r\\n \\n \\r
# @param [Hash] opts the optional parameters
# @option opts [String] :test_code_inject____end____rn_n_r To test code injection */ ' \" =_end -- \\r\\n \\n \\r
# @option opts [String] :test_code_inject____end____rn_n_r To test code injection */ ' \\\" =_end -- \\\\r\\\\n \\\\n \\\\r
# @return [nil]
describe 'test_code_inject____end__rn_n_r test' do
it "should work" do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end

View File

@ -1,23 +1,12 @@
=begin
#Swagger Petstore */ ' \" =_end -- \\r\\n \\n \\r
#OpenAPI Petstore */ ' \" =_end -- \\r\\n \\n \\r
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =_end --
OpenAPI spec version: 1.0.0 */ ' \" =_end -- \\r\\n \\n \\r
Contact: apiteam@swagger.io */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contact: something@something.abc */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -62,11 +51,11 @@ describe Petstore::ApiClient do
end
end
describe "params_encoding in #build_request" do
describe 'params_encoding in #build_request' do
let(:config) { Petstore::Configuration.new }
let(:api_client) { Petstore::ApiClient.new(config) }
it "defaults to nil" do
it 'defaults to nil' do
expect(Petstore::Configuration.default.params_encoding).to eq(nil)
expect(config.params_encoding).to eq(nil)
@ -74,18 +63,18 @@ describe Petstore::ApiClient do
expect(request.options[:params_encoding]).to eq(nil)
end
it "can be customized" do
it 'can be customized' do
config.params_encoding = :multi
request = api_client.build_request(:get, '/test')
expect(request.options[:params_encoding]).to eq(:multi)
end
end
describe "timeout in #build_request" do
describe 'timeout in #build_request' do
let(:config) { Petstore::Configuration.new }
let(:api_client) { Petstore::ApiClient.new(config) }
it "defaults to 0" do
it 'defaults to 0' do
expect(Petstore::Configuration.default.timeout).to eq(0)
expect(config.timeout).to eq(0)
@ -93,93 +82,92 @@ describe Petstore::ApiClient do
expect(request.options[:timeout]).to eq(0)
end
it "can be customized" do
it 'can be customized' do
config.timeout = 100
request = api_client.build_request(:get, '/test')
expect(request.options[:timeout]).to eq(100)
end
end
describe "#deserialize" do
describe '#deserialize' do
it "handles Array<Integer>" do
api_client = Petstore::ApiClient.new
headers = {'Content-Type' => 'application/json'}
headers = { 'Content-Type' => 'application/json' }
response = double('response', headers: headers, body: '[12, 34]')
data = api_client.deserialize(response, 'Array<Integer>')
expect(data).to be_instance_of(Array)
expect(data).to eq([12, 34])
end
it "handles Array<Array<Integer>>" do
it 'handles Array<Array<Integer>>' do
api_client = Petstore::ApiClient.new
headers = {'Content-Type' => 'application/json'}
headers = { 'Content-Type' => 'application/json' }
response = double('response', headers: headers, body: '[[12, 34], [56]]')
data = api_client.deserialize(response, 'Array<Array<Integer>>')
expect(data).to be_instance_of(Array)
expect(data).to eq([[12, 34], [56]])
end
it "handles Hash<String, String>" do
it 'handles Hash<String, String>' do
api_client = Petstore::ApiClient.new
headers = {'Content-Type' => 'application/json'}
headers = { 'Content-Type' => 'application/json' }
response = double('response', headers: headers, body: '{"message": "Hello"}')
data = api_client.deserialize(response, 'Hash<String, String>')
expect(data).to be_instance_of(Hash)
expect(data).to eq({:message => 'Hello'})
expect(data).to eq(:message => 'Hello')
end
end
describe "#object_to_hash" do
it "ignores nils and includes empty arrays" do
it 'ignores nils and includes empty arrays' do
# uncomment below to test object_to_hash for model
#api_client = Petstore::ApiClient.new
#_model = Petstore::ModelName.new
# api_client = Petstore::ApiClient.new
# _model = Petstore::ModelName.new
# update the model attribute below
#_model.id = 1
# _model.id = 1
# update the expected value (hash) below
#expected = {id: 1, name: '', tags: []}
#expect(api_client.object_to_hash(_model)).to eq(expected)
# expected = {id: 1, name: '', tags: []}
# expect(api_client.object_to_hash(_model)).to eq(expected)
end
end
describe "#build_collection_param" do
describe '#build_collection_param' do
let(:param) { ['aa', 'bb', 'cc'] }
let(:api_client) { Petstore::ApiClient.new }
it "works for csv" do
it 'works for csv' do
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
end
it "works for ssv" do
it 'works for ssv' do
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
end
it "works for tsv" do
it 'works for tsv' do
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
end
it "works for pipes" do
it 'works for pipes' do
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
end
it "works for multi" do
it 'works for multi' do
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
end
it "fails for invalid collection format" do
it 'fails for invalid collection format' do
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
end
end
describe "#json_mime?" do
describe '#json_mime?' do
let(:api_client) { Petstore::ApiClient.new }
it "works" do
it 'works' do
expect(api_client.json_mime?(nil)).to eq false
expect(api_client.json_mime?('')).to eq false
expect(api_client.json_mime?('application/json')).to eq true
expect(api_client.json_mime?('application/api.vnd+json')).to eq true
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
@ -189,10 +177,10 @@ describe Petstore::ApiClient do
end
end
describe "#select_header_accept" do
describe '#select_header_accept' do
let(:api_client) { Petstore::ApiClient.new }
it "works" do
it 'works' do
expect(api_client.select_header_accept(nil)).to be_nil
expect(api_client.select_header_accept([])).to be_nil
@ -205,10 +193,10 @@ describe Petstore::ApiClient do
end
end
describe "#select_header_content_type" do
describe '#select_header_content_type' do
let(:api_client) { Petstore::ApiClient.new }
it "works" do
it 'works' do
expect(api_client.select_header_content_type(nil)).to eq('application/json')
expect(api_client.select_header_content_type([])).to eq('application/json')
@ -220,10 +208,10 @@ describe Petstore::ApiClient do
end
end
describe "#sanitize_filename" do
describe '#sanitize_filename' do
let(:api_client) { Petstore::ApiClient.new }
it "works" do
it 'works' do
expect(api_client.sanitize_filename('sun')).to eq('sun')
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')

View File

@ -1,23 +1,12 @@
=begin
#Swagger Petstore */ ' \" =_end -- \\r\\n \\n \\r
#OpenAPI Petstore */ ' \" =_end -- \\r\\n \\n \\r
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =_end --
OpenAPI spec version: 1.0.0 */ &#39; \&quot; &#x3D;_end -- \\r\\n \\n \\r
Contact: apiteam@swagger.io */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contact: something@something.abc */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -28,25 +17,25 @@ describe Petstore::Configuration do
before(:each) do
# uncomment below to setup host and base_path
#require 'URI'
#uri = URI.parse("https://petstore.swagger.io */ ' \" =_end -- \\r\\n \\n \\r/v2 */ ' \" =_end -- \\r\\n \\n \\r")
#Petstore.configure do |c|
# c.host = uri.host
# c.base_path = uri.path
#end
# require 'URI'
# uri = URI.parse("http://petstore.swagger.io */ ' \" =_end -- \\r\\n \\n \\r/v2 */ ' \" =_end -- \\r\\n \\n \\r")
# Petstore.configure do |c|
# c.host = uri.host
# c.base_path = uri.path
# end
end
describe '#base_url' do
it 'should have the default value' do
# uncomment below to test default value of the base path
#expect(config.base_url).to eq("https://petstore.swagger.io */ ' \" =_end -- \\r\\n \\n \\r/v2 */ ' \" =_end -- \\r\\n \\n \\r")
# expect(config.base_url).to eq("http://petstore.swagger.io */ ' \" =_end -- \\r\\n \\n \\r/v2 */ ' \" =_end -- \\r\\n \\n \\r")
end
it 'should remove trailing slashes' do
[nil, '', '/', '//'].each do |base_path|
config.base_path = base_path
# uncomment below to test trailing slashes
#expect(config.base_url).to eq("https://petstore.swagger.io */ ' \" =_end -- \\r\\n \\n \\r/v2 */ ' \" =_end -- \\r\\n \\n \\r")
# expect(config.base_url).to eq("http://petstore.swagger.io */ ' \" =_end -- \\r\\n \\n \\r/v2 */ ' \" =_end -- \\r\\n \\n \\r")
end
end
end

View File

@ -1,23 +1,12 @@
=begin
#Swagger Petstore */ ' \" =_end -- \\r\\n \\n \\r
#OpenAPI Petstore */ ' \" =_end -- \\r\\n \\n \\r
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =_end --
OpenAPI spec version: 1.0.0 */ &#39; \&quot; &#x3D;_end -- \\r\\n \\n \\r
Contact: apiteam@swagger.io */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contact: something@something.abc */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -26,7 +15,7 @@ require 'json'
require 'date'
# Unit tests for Petstore::ModelReturn
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'ModelReturn' do
before do
@ -45,9 +34,8 @@ describe 'ModelReturn' do
end
describe 'test attribute "_return"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
end

View File

@ -1,23 +1,12 @@
=begin
#Swagger Petstore */ ' \" =_end -- \\r\\n \\n \\r
#OpenAPI Petstore */ ' \" =_end -- \\r\\n \\n \\r
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =_end --
OpenAPI spec version: 1.0.0 */ &#39; \&quot; &#x3D;_end -- \\r\\n \\n \\r
Contact: apiteam@swagger.io */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contact: something@something.abc */ ' \" =_end -- \\r\\n \\n \\r
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -73,6 +73,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -850,6 +850,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -73,6 +73,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -508,6 +508,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -227,6 +227,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -422,6 +422,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -198,7 +198,5 @@ module Petstore
value
end
end
end
end

View File

@ -206,7 +206,5 @@ module Petstore
value
end
end
end
end

View File

@ -203,7 +203,5 @@ module Petstore
value
end
end
end
end

View File

@ -187,7 +187,5 @@ module Petstore
value
end
end
end
end

View File

@ -187,7 +187,5 @@ module Petstore
value
end
end
end
end

View File

@ -209,7 +209,5 @@ module Petstore
value
end
end
end
end

View File

@ -231,7 +231,5 @@ module Petstore
value
end
end
end
end

View File

@ -196,7 +196,5 @@ module Petstore
value
end
end
end
end

View File

@ -201,7 +201,5 @@ module Petstore
value
end
end
end
end

View File

@ -186,7 +186,5 @@ module Petstore
value
end
end
end
end

View File

@ -185,7 +185,5 @@ module Petstore
value
end
end
end
end

View File

@ -196,7 +196,5 @@ module Petstore
value
end
end
end
end

View File

@ -230,7 +230,5 @@ module Petstore
value
end
end
end
end

View File

@ -35,5 +35,4 @@ module Petstore
value
end
end
end

View File

@ -296,7 +296,5 @@ module Petstore
value
end
end
end
end

View File

@ -187,7 +187,5 @@ module Petstore
value
end
end
end
end

View File

@ -196,7 +196,5 @@ module Petstore
value
end
end
end
end

View File

@ -499,7 +499,5 @@ module Petstore
value
end
end
end
end

View File

@ -194,7 +194,5 @@ module Petstore
value
end
end
end
end

View File

@ -185,7 +185,5 @@ module Petstore
value
end
end
end
end

View File

@ -242,7 +242,5 @@ module Petstore
value
end
end
end
end

View File

@ -205,7 +205,5 @@ module Petstore
value
end
end
end
end

View File

@ -195,7 +195,5 @@ module Petstore
value
end
end
end
end

View File

@ -186,7 +186,5 @@ module Petstore
value
end
end
end
end

View File

@ -218,7 +218,5 @@ module Petstore
value
end
end
end
end

View File

@ -185,7 +185,5 @@ module Petstore
value
end
end
end
end

View File

@ -267,7 +267,5 @@ module Petstore
value
end
end
end
end

View File

@ -203,7 +203,5 @@ module Petstore
value
end
end
end
end

View File

@ -35,5 +35,4 @@ module Petstore
value
end
end
end

View File

@ -279,7 +279,5 @@ module Petstore
value
end
end
end
end

View File

@ -194,7 +194,5 @@ module Petstore
value
end
end
end
end

View File

@ -185,7 +185,5 @@ module Petstore
value
end
end
end
end

View File

@ -194,7 +194,5 @@ module Petstore
value
end
end
end
end

View File

@ -252,7 +252,5 @@ module Petstore
value
end
end
end
end

View File

@ -248,7 +248,5 @@ module Petstore
value
end
end
end
end

View File

@ -249,7 +249,5 @@ module Petstore
value
end
end
end
end

View File

@ -455,7 +455,5 @@ module Petstore
value
end
end
end
end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -35,7 +35,7 @@ describe 'AnotherFakeApi' do
# unit tests for call_123_test_special_tags
# To test special tags
# To test special tags and operation ID starting with number
# @param client client model
# @param body client model
# @param [Hash] opts the optional parameters
# @return [Client]
describe 'call_123_test_special_tags test' do

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -32,6 +32,18 @@ describe 'FakeApi' do
end
end
# unit tests for create_xml_item
# creates an XmlItem
# this route creates an XmlItem
# @param xml_item XmlItem Body
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'create_xml_item test' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
# unit tests for fake_outer_boolean_serialize
# Test serialization of outer boolean types
# @param [Hash] opts the optional parameters
@ -46,7 +58,7 @@ describe 'FakeApi' do
# unit tests for fake_outer_composite_serialize
# Test serialization of object with outer number type
# @param [Hash] opts the optional parameters
# @option opts [OuterComposite] :outer_composite Input composite as post body
# @option opts [OuterComposite] :body Input composite as post body
# @return [OuterComposite]
describe 'fake_outer_composite_serialize test' do
it 'should work' do
@ -78,7 +90,7 @@ describe 'FakeApi' do
# unit tests for test_body_with_file_schema
# For this test, the body for this request much reference a schema named &#x60;File&#x60;.
# @param file_schema_test_class
# @param body
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'test_body_with_file_schema test' do
@ -89,7 +101,7 @@ describe 'FakeApi' do
# unit tests for test_body_with_query_params
# @param query
# @param user
# @param body
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'test_body_with_query_params test' do
@ -101,7 +113,7 @@ describe 'FakeApi' do
# unit tests for test_client_model
# To test \&quot;client\&quot; model
# To test \&quot;client\&quot; model
# @param client client model
# @param body client model
# @param [Hash] opts the optional parameters
# @return [Client]
describe 'test_client_model test' do
@ -173,7 +185,7 @@ describe 'FakeApi' do
# unit tests for test_inline_additional_properties
# test inline additionalProperties
# @param request_body request body
# @param param request body
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'test_inline_additional_properties test' do

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -35,7 +35,7 @@ describe 'FakeClassnameTags123Api' do
# unit tests for test_classname
# To test class name in snake case
# To test class name in snake case
# @param client client model
# @param body client model
# @param [Hash] opts the optional parameters
# @return [Client]
describe 'test_classname test' do

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -34,7 +34,7 @@ describe 'PetApi' do
# unit tests for add_pet
# Add a new pet to the store
# @param pet Pet object that needs to be added to the store
# @param body Pet object that needs to be added to the store
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'add_pet test' do
@ -93,7 +93,7 @@ describe 'PetApi' do
# unit tests for update_pet
# Update an existing pet
# @param pet Pet object that needs to be added to the store
# @param body Pet object that needs to be added to the store
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'update_pet test' do

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -69,7 +69,7 @@ describe 'StoreApi' do
# unit tests for place_order
# Place an order for a pet
# @param order order placed for purchasing the pet
# @param body order placed for purchasing the pet
# @param [Hash] opts the optional parameters
# @return [Order]
describe 'place_order test' do

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -35,7 +35,7 @@ describe 'UserApi' do
# unit tests for create_user
# Create user
# This can only be done by the logged in user.
# @param user Created user object
# @param body Created user object
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'create_user test' do
@ -46,7 +46,7 @@ describe 'UserApi' do
# unit tests for create_users_with_array_input
# Creates list of users with given input array
# @param user List of user object
# @param body List of user object
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'create_users_with_array_input test' do
@ -57,7 +57,7 @@ describe 'UserApi' do
# unit tests for create_users_with_list_input
# Creates list of users with given input array
# @param user List of user object
# @param body List of user object
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'create_users_with_list_input test' do
@ -115,7 +115,7 @@ describe 'UserApi' do
# Updated user
# This can only be done by the logged in user.
# @param username name that need to be deleted
# @param user Updated user object
# @param body Updated user object
# @param [Hash] opts the optional parameters
# @return [nil]
describe 'update_user test' do

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -32,18 +32,10 @@ describe 'Cat' do
expect(@instance).to be_instance_of(Petstore::Cat)
end
end
describe 'test attribute "declawed"' do
it 'should work' do
expect(Cat.new.attributes.inspect).to include("declawed");
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'attribute "declawed"' do
it 'should be the only attribute' do
expect(Cat.new.attributes.inspect).to match_array(["declawed"]);
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end
@ -32,18 +32,6 @@ describe 'Dog' do
expect(@instance).to be_instance_of(Petstore::Dog)
end
end
describe 'test attribute "class_name"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "color"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "breed"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -170,37 +170,37 @@ describe 'XmlItem' do
end
end
describe 'test attribute "prefix_namespace_string"' do
describe 'test attribute "prefix_ns_string"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "prefix_namespace_number"' do
describe 'test attribute "prefix_ns_number"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "prefix_namespace_integer"' do
describe 'test attribute "prefix_ns_integer"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "prefix_namespace_boolean"' do
describe 'test attribute "prefix_ns_boolean"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "prefix_namespace_array"' do
describe 'test attribute "prefix_ns_array"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "prefix_namespace_wrapped_array"' do
describe 'test attribute "prefix_ns_wrapped_array"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end

View File

@ -6,7 +6,7 @@
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 3.3.4-SNAPSHOT
OpenAPI Generator version: 4.0.0-SNAPSHOT
=end

View File

@ -73,6 +73,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

View File

@ -61,6 +61,5 @@ module Petstore
end
return data, status_code, headers
end
end
end

Some files were not shown because too many files have changed in this diff Show More