mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
update ruby with oas2 before ci test (#231)
This commit is contained in:
parent
fe15f46906
commit
e2d4f5b5ca
@ -111,7 +111,6 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
- [Petstore::AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
- [Petstore::AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||||
- [Petstore::Animal](docs/Animal.md)
|
- [Petstore::Animal](docs/Animal.md)
|
||||||
- [Petstore::AnimalFarm](docs/AnimalFarm.md)
|
|
||||||
- [Petstore::ApiResponse](docs/ApiResponse.md)
|
- [Petstore::ApiResponse](docs/ApiResponse.md)
|
||||||
- [Petstore::ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
- [Petstore::ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||||
- [Petstore::ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [Petstore::ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
@ -135,11 +134,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Petstore::Name](docs/Name.md)
|
- [Petstore::Name](docs/Name.md)
|
||||||
- [Petstore::NumberOnly](docs/NumberOnly.md)
|
- [Petstore::NumberOnly](docs/NumberOnly.md)
|
||||||
- [Petstore::Order](docs/Order.md)
|
- [Petstore::Order](docs/Order.md)
|
||||||
- [Petstore::OuterBoolean](docs/OuterBoolean.md)
|
|
||||||
- [Petstore::OuterComposite](docs/OuterComposite.md)
|
- [Petstore::OuterComposite](docs/OuterComposite.md)
|
||||||
- [Petstore::OuterEnum](docs/OuterEnum.md)
|
- [Petstore::OuterEnum](docs/OuterEnum.md)
|
||||||
- [Petstore::OuterNumber](docs/OuterNumber.md)
|
|
||||||
- [Petstore::OuterString](docs/OuterString.md)
|
|
||||||
- [Petstore::Pet](docs/Pet.md)
|
- [Petstore::Pet](docs/Pet.md)
|
||||||
- [Petstore::ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [Petstore::ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
- [Petstore::SpecialModelName](docs/SpecialModelName.md)
|
- [Petstore::SpecialModelName](docs/SpecialModelName.md)
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# Petstore::AnimalFarm
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
# Petstore::Body4
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**param** | **String** | field1 |
|
|
||||||
**param2** | **String** | field2 |
|
|
||||||
|
|
||||||
|
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **fake_outer_boolean_serialize**
|
# **fake_outer_boolean_serialize**
|
||||||
> OuterBoolean fake_outer_boolean_serialize(opts)
|
> BOOLEAN fake_outer_boolean_serialize(opts)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterBoolean**](OuterBoolean.md)
|
**BOOLEAN**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ No authorization required
|
|||||||
|
|
||||||
|
|
||||||
# **fake_outer_number_serialize**
|
# **fake_outer_number_serialize**
|
||||||
> OuterNumber fake_outer_number_serialize(opts)
|
> Float fake_outer_number_serialize(opts)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterNumber**](OuterNumber.md)
|
**Float**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ No authorization required
|
|||||||
|
|
||||||
|
|
||||||
# **fake_outer_string_serialize**
|
# **fake_outer_string_serialize**
|
||||||
> OuterString fake_outer_string_serialize(opts)
|
> String fake_outer_string_serialize(opts)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterString**](OuterString.md)
|
**String**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# Petstore::OuterBoolean
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**my_number** | [**OuterNumber**](OuterNumber.md) | | [optional]
|
**my_number** | **Float** | | [optional]
|
||||||
**my_string** | [**OuterString**](OuterString.md) | | [optional]
|
**my_string** | **String** | | [optional]
|
||||||
**my_boolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional]
|
**my_boolean** | **BOOLEAN** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# Petstore::OuterNumber
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
# Petstore::OuterString
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
|
||||||
|
|
@ -19,7 +19,6 @@ require 'petstore/configuration'
|
|||||||
# Models
|
# Models
|
||||||
require 'petstore/models/additional_properties_class'
|
require 'petstore/models/additional_properties_class'
|
||||||
require 'petstore/models/animal'
|
require 'petstore/models/animal'
|
||||||
require 'petstore/models/animal_farm'
|
|
||||||
require 'petstore/models/api_response'
|
require 'petstore/models/api_response'
|
||||||
require 'petstore/models/array_of_array_of_number_only'
|
require 'petstore/models/array_of_array_of_number_only'
|
||||||
require 'petstore/models/array_of_number_only'
|
require 'petstore/models/array_of_number_only'
|
||||||
@ -43,11 +42,8 @@ require 'petstore/models/model_return'
|
|||||||
require 'petstore/models/name'
|
require 'petstore/models/name'
|
||||||
require 'petstore/models/number_only'
|
require 'petstore/models/number_only'
|
||||||
require 'petstore/models/order'
|
require 'petstore/models/order'
|
||||||
require 'petstore/models/outer_boolean'
|
|
||||||
require 'petstore/models/outer_composite'
|
require 'petstore/models/outer_composite'
|
||||||
require 'petstore/models/outer_enum'
|
require 'petstore/models/outer_enum'
|
||||||
require 'petstore/models/outer_number'
|
|
||||||
require 'petstore/models/outer_string'
|
|
||||||
require 'petstore/models/pet'
|
require 'petstore/models/pet'
|
||||||
require 'petstore/models/read_only_first'
|
require 'petstore/models/read_only_first'
|
||||||
require 'petstore/models/special_model_name'
|
require 'petstore/models/special_model_name'
|
||||||
|
@ -22,7 +22,7 @@ module Petstore
|
|||||||
# Test serialization of outer boolean types
|
# Test serialization of outer boolean types
|
||||||
# @param [Hash] opts the optional parameters
|
# @param [Hash] opts the optional parameters
|
||||||
# @option opts [BOOLEAN] :boolean_post_body Input boolean as post body
|
# @option opts [BOOLEAN] :boolean_post_body Input boolean as post body
|
||||||
# @return [OuterBoolean]
|
# @return [BOOLEAN]
|
||||||
def fake_outer_boolean_serialize(opts = {})
|
def fake_outer_boolean_serialize(opts = {})
|
||||||
data, _status_code, _headers = fake_outer_boolean_serialize_with_http_info(opts)
|
data, _status_code, _headers = fake_outer_boolean_serialize_with_http_info(opts)
|
||||||
data
|
data
|
||||||
@ -31,7 +31,7 @@ module Petstore
|
|||||||
# Test serialization of outer boolean types
|
# Test serialization of outer boolean types
|
||||||
# @param [Hash] opts the optional parameters
|
# @param [Hash] opts the optional parameters
|
||||||
# @option opts [BOOLEAN] :boolean_post_body Input boolean as post body
|
# @option opts [BOOLEAN] :boolean_post_body Input boolean as post body
|
||||||
# @return [Array<(OuterBoolean, Fixnum, Hash)>] OuterBoolean data, response status code and response headers
|
# @return [Array<(BOOLEAN, Fixnum, Hash)>] BOOLEAN data, response status code and response headers
|
||||||
def fake_outer_boolean_serialize_with_http_info(opts = {})
|
def fake_outer_boolean_serialize_with_http_info(opts = {})
|
||||||
if @api_client.config.debugging
|
if @api_client.config.debugging
|
||||||
@api_client.config.logger.debug 'Calling API: FakeApi.fake_outer_boolean_serialize ...'
|
@api_client.config.logger.debug 'Calling API: FakeApi.fake_outer_boolean_serialize ...'
|
||||||
@ -59,7 +59,7 @@ module Petstore
|
|||||||
:form_params => form_params,
|
:form_params => form_params,
|
||||||
:body => post_body,
|
:body => post_body,
|
||||||
:auth_names => auth_names,
|
:auth_names => auth_names,
|
||||||
:return_type => 'OuterBoolean')
|
:return_type => 'BOOLEAN')
|
||||||
if @api_client.config.debugging
|
if @api_client.config.debugging
|
||||||
@api_client.config.logger.debug "API called: FakeApi#fake_outer_boolean_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
@api_client.config.logger.debug "API called: FakeApi#fake_outer_boolean_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
||||||
end
|
end
|
||||||
@ -114,7 +114,7 @@ module Petstore
|
|||||||
# Test serialization of outer number types
|
# Test serialization of outer number types
|
||||||
# @param [Hash] opts the optional parameters
|
# @param [Hash] opts the optional parameters
|
||||||
# @option opts [Float] :body Input number as post body
|
# @option opts [Float] :body Input number as post body
|
||||||
# @return [OuterNumber]
|
# @return [Float]
|
||||||
def fake_outer_number_serialize(opts = {})
|
def fake_outer_number_serialize(opts = {})
|
||||||
data, _status_code, _headers = fake_outer_number_serialize_with_http_info(opts)
|
data, _status_code, _headers = fake_outer_number_serialize_with_http_info(opts)
|
||||||
data
|
data
|
||||||
@ -123,7 +123,7 @@ module Petstore
|
|||||||
# Test serialization of outer number types
|
# Test serialization of outer number types
|
||||||
# @param [Hash] opts the optional parameters
|
# @param [Hash] opts the optional parameters
|
||||||
# @option opts [Float] :body Input number as post body
|
# @option opts [Float] :body Input number as post body
|
||||||
# @return [Array<(OuterNumber, Fixnum, Hash)>] OuterNumber data, response status code and response headers
|
# @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
|
||||||
def fake_outer_number_serialize_with_http_info(opts = {})
|
def fake_outer_number_serialize_with_http_info(opts = {})
|
||||||
if @api_client.config.debugging
|
if @api_client.config.debugging
|
||||||
@api_client.config.logger.debug 'Calling API: FakeApi.fake_outer_number_serialize ...'
|
@api_client.config.logger.debug 'Calling API: FakeApi.fake_outer_number_serialize ...'
|
||||||
@ -151,7 +151,7 @@ module Petstore
|
|||||||
:form_params => form_params,
|
:form_params => form_params,
|
||||||
:body => post_body,
|
:body => post_body,
|
||||||
:auth_names => auth_names,
|
:auth_names => auth_names,
|
||||||
:return_type => 'OuterNumber')
|
:return_type => 'Float')
|
||||||
if @api_client.config.debugging
|
if @api_client.config.debugging
|
||||||
@api_client.config.logger.debug "API called: FakeApi#fake_outer_number_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
@api_client.config.logger.debug "API called: FakeApi#fake_outer_number_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
||||||
end
|
end
|
||||||
@ -160,7 +160,7 @@ module Petstore
|
|||||||
# Test serialization of outer string types
|
# Test serialization of outer string types
|
||||||
# @param [Hash] opts the optional parameters
|
# @param [Hash] opts the optional parameters
|
||||||
# @option opts [String] :body Input string as post body
|
# @option opts [String] :body Input string as post body
|
||||||
# @return [OuterString]
|
# @return [String]
|
||||||
def fake_outer_string_serialize(opts = {})
|
def fake_outer_string_serialize(opts = {})
|
||||||
data, _status_code, _headers = fake_outer_string_serialize_with_http_info(opts)
|
data, _status_code, _headers = fake_outer_string_serialize_with_http_info(opts)
|
||||||
data
|
data
|
||||||
@ -169,7 +169,7 @@ module Petstore
|
|||||||
# Test serialization of outer string types
|
# Test serialization of outer string types
|
||||||
# @param [Hash] opts the optional parameters
|
# @param [Hash] opts the optional parameters
|
||||||
# @option opts [String] :body Input string as post body
|
# @option opts [String] :body Input string as post body
|
||||||
# @return [Array<(OuterString, Fixnum, Hash)>] OuterString data, response status code and response headers
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
||||||
def fake_outer_string_serialize_with_http_info(opts = {})
|
def fake_outer_string_serialize_with_http_info(opts = {})
|
||||||
if @api_client.config.debugging
|
if @api_client.config.debugging
|
||||||
@api_client.config.logger.debug 'Calling API: FakeApi.fake_outer_string_serialize ...'
|
@api_client.config.logger.debug 'Calling API: FakeApi.fake_outer_string_serialize ...'
|
||||||
@ -197,7 +197,7 @@ module Petstore
|
|||||||
:form_params => form_params,
|
:form_params => form_params,
|
||||||
:body => post_body,
|
:body => post_body,
|
||||||
:auth_names => auth_names,
|
:auth_names => auth_names,
|
||||||
:return_type => 'OuterString')
|
:return_type => 'String')
|
||||||
if @api_client.config.debugging
|
if @api_client.config.debugging
|
||||||
@api_client.config.logger.debug "API called: FakeApi#fake_outer_string_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
@api_client.config.logger.debug "API called: FakeApi#fake_outer_string_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
||||||
end
|
end
|
||||||
@ -499,14 +499,14 @@ module Petstore
|
|||||||
if @api_client.config.debugging
|
if @api_client.config.debugging
|
||||||
@api_client.config.logger.debug 'Calling API: FakeApi.test_enum_parameters ...'
|
@api_client.config.logger.debug 'Calling API: FakeApi.test_enum_parameters ...'
|
||||||
end
|
end
|
||||||
if @api_client.config.client_side_validation && opts[:'enum_header_string_array'] && !['>', '$'].include?(opts[:'enum_header_string_array'])
|
if @api_client.config.client_side_validation && opts[:'enum_header_string_array'] && !opts[:'enum_header_string_array'].all? { |item| ['>', '$'].include?(item) }
|
||||||
fail ArgumentError, 'invalid value for "enum_header_string_array", must be one of >, $'
|
fail ArgumentError, 'invalid value for "enum_header_string_array", must include one of >, $'
|
||||||
end
|
end
|
||||||
if @api_client.config.client_side_validation && opts[:'enum_header_string'] && !['_abc', '-efg', '(xyz)'].include?(opts[:'enum_header_string'])
|
if @api_client.config.client_side_validation && opts[:'enum_header_string'] && !['_abc', '-efg', '(xyz)'].include?(opts[:'enum_header_string'])
|
||||||
fail ArgumentError, 'invalid value for "enum_header_string", must be one of _abc, -efg, (xyz)'
|
fail ArgumentError, 'invalid value for "enum_header_string", must be one of _abc, -efg, (xyz)'
|
||||||
end
|
end
|
||||||
if @api_client.config.client_side_validation && opts[:'enum_query_string_array'] && !['>', '$'].include?(opts[:'enum_query_string_array'])
|
if @api_client.config.client_side_validation && opts[:'enum_query_string_array'] && !opts[:'enum_query_string_array'].all? { |item| ['>', '$'].include?(item) }
|
||||||
fail ArgumentError, 'invalid value for "enum_query_string_array", must be one of >, $'
|
fail ArgumentError, 'invalid value for "enum_query_string_array", must include one of >, $'
|
||||||
end
|
end
|
||||||
if @api_client.config.client_side_validation && opts[:'enum_query_string'] && !['_abc', '-efg', '(xyz)'].include?(opts[:'enum_query_string'])
|
if @api_client.config.client_side_validation && opts[:'enum_query_string'] && !['_abc', '-efg', '(xyz)'].include?(opts[:'enum_query_string'])
|
||||||
fail ArgumentError, 'invalid value for "enum_query_string", must be one of _abc, -efg, (xyz)'
|
fail ArgumentError, 'invalid value for "enum_query_string", must be one of _abc, -efg, (xyz)'
|
||||||
@ -528,7 +528,7 @@ module Petstore
|
|||||||
|
|
||||||
# query parameters
|
# query parameters
|
||||||
query_params = {}
|
query_params = {}
|
||||||
query_params[:'enum_query_string_array'] = opts[:'enum_query_string_array'] if !opts[:'enum_query_string_array'].nil?
|
query_params[:'enum_query_string_array'] = @api_client.build_collection_param(opts[:'enum_query_string_array'], :csv) if !opts[:'enum_query_string_array'].nil?
|
||||||
query_params[:'enum_query_string'] = opts[:'enum_query_string'] if !opts[:'enum_query_string'].nil?
|
query_params[:'enum_query_string'] = opts[:'enum_query_string'] if !opts[:'enum_query_string'].nil?
|
||||||
query_params[:'enum_query_integer'] = opts[:'enum_query_integer'] if !opts[:'enum_query_integer'].nil?
|
query_params[:'enum_query_integer'] = opts[:'enum_query_integer'] if !opts[:'enum_query_integer'].nil?
|
||||||
query_params[:'enum_query_double'] = opts[:'enum_query_double'] if !opts[:'enum_query_double'].nil?
|
query_params[:'enum_query_double'] = opts[:'enum_query_double'] if !opts[:'enum_query_double'].nil?
|
||||||
@ -537,7 +537,7 @@ module Petstore
|
|||||||
header_params = {}
|
header_params = {}
|
||||||
# HTTP header 'Content-Type'
|
# HTTP header 'Content-Type'
|
||||||
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
||||||
header_params[:'enum_header_string_array'] = opts[:'enum_header_string_array'] if !opts[:'enum_header_string_array'].nil?
|
header_params[:'enum_header_string_array'] = @api_client.build_collection_param(opts[:'enum_header_string_array'], :csv) if !opts[:'enum_header_string_array'].nil?
|
||||||
header_params[:'enum_header_string'] = opts[:'enum_header_string'] if !opts[:'enum_header_string'].nil?
|
header_params[:'enum_header_string'] = opts[:'enum_header_string'] if !opts[:'enum_header_string'].nil?
|
||||||
|
|
||||||
# form parameters
|
# form parameters
|
||||||
|
@ -146,7 +146,7 @@ module Petstore
|
|||||||
|
|
||||||
# query parameters
|
# query parameters
|
||||||
query_params = {}
|
query_params = {}
|
||||||
query_params[:'status'] = status
|
query_params[:'status'] = @api_client.build_collection_param(status, :csv)
|
||||||
|
|
||||||
# header parameters
|
# header parameters
|
||||||
header_params = {}
|
header_params = {}
|
||||||
@ -199,7 +199,7 @@ module Petstore
|
|||||||
|
|
||||||
# query parameters
|
# query parameters
|
||||||
query_params = {}
|
query_params = {}
|
||||||
query_params[:'tags'] = tags
|
query_params[:'tags'] = @api_client.build_collection_param(tags, :csv)
|
||||||
|
|
||||||
# header parameters
|
# header parameters
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
@ -32,9 +32,9 @@ module Petstore
|
|||||||
# Attribute type mapping.
|
# Attribute type mapping.
|
||||||
def self.swagger_types
|
def self.swagger_types
|
||||||
{
|
{
|
||||||
:'my_number' => :'OuterNumber',
|
:'my_number' => :'Float',
|
||||||
:'my_string' => :'OuterString',
|
:'my_string' => :'String',
|
||||||
:'my_boolean' => :'OuterBoolean'
|
:'my_boolean' => :'BOOLEAN'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
=begin
|
|
||||||
#Swagger Petstore
|
|
||||||
|
|
||||||
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
|
||||||
Contact: apiteam@swagger.io
|
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
Swagger Codegen version: 3.0.0-SNAPSHOT
|
|
||||||
|
|
||||||
=end
|
|
||||||
|
|
||||||
require 'spec_helper'
|
|
||||||
require 'json'
|
|
||||||
require 'date'
|
|
||||||
|
|
||||||
# Unit tests for Petstore::Body4
|
|
||||||
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
||||||
# Please update as you see appropriate
|
|
||||||
describe 'Body4' do
|
|
||||||
before do
|
|
||||||
# run before each test
|
|
||||||
@instance = Petstore::Body4.new
|
|
||||||
end
|
|
||||||
|
|
||||||
after do
|
|
||||||
# run after each test
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'test an instance of Body4' do
|
|
||||||
it 'should create an instance of Body4' do
|
|
||||||
expect(@instance).to be_instance_of(Petstore::Body4)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
describe 'test attribute "param"' do
|
|
||||||
it 'should work' do
|
|
||||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'test attribute "param2"' do
|
|
||||||
it 'should work' do
|
|
||||||
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
@ -1,35 +0,0 @@
|
|||||||
=begin
|
|
||||||
#Swagger Petstore
|
|
||||||
|
|
||||||
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
|
||||||
Contact: apiteam@swagger.io
|
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
Swagger Codegen version: 3.0.0-SNAPSHOT
|
|
||||||
|
|
||||||
=end
|
|
||||||
|
|
||||||
require 'spec_helper'
|
|
||||||
require 'json'
|
|
||||||
require 'date'
|
|
||||||
|
|
||||||
# Unit tests for Petstore::OuterBoolean
|
|
||||||
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
||||||
# Please update as you see appropriate
|
|
||||||
describe 'OuterBoolean' do
|
|
||||||
before do
|
|
||||||
# run before each test
|
|
||||||
@instance = Petstore::OuterBoolean.new
|
|
||||||
end
|
|
||||||
|
|
||||||
after do
|
|
||||||
# run after each test
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'test an instance of OuterBoolean' do
|
|
||||||
it 'should create an instance of OuterBoolean' do
|
|
||||||
expect(@instance).to be_instance_of(Petstore::OuterBoolean)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,35 +0,0 @@
|
|||||||
=begin
|
|
||||||
#Swagger Petstore
|
|
||||||
|
|
||||||
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
|
||||||
Contact: apiteam@swagger.io
|
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
Swagger Codegen version: 3.0.0-SNAPSHOT
|
|
||||||
|
|
||||||
=end
|
|
||||||
|
|
||||||
require 'spec_helper'
|
|
||||||
require 'json'
|
|
||||||
require 'date'
|
|
||||||
|
|
||||||
# Unit tests for Petstore::OuterNumber
|
|
||||||
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
||||||
# Please update as you see appropriate
|
|
||||||
describe 'OuterNumber' do
|
|
||||||
before do
|
|
||||||
# run before each test
|
|
||||||
@instance = Petstore::OuterNumber.new
|
|
||||||
end
|
|
||||||
|
|
||||||
after do
|
|
||||||
# run after each test
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'test an instance of OuterNumber' do
|
|
||||||
it 'should create an instance of OuterNumber' do
|
|
||||||
expect(@instance).to be_instance_of(Petstore::OuterNumber)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,35 +0,0 @@
|
|||||||
=begin
|
|
||||||
#Swagger Petstore
|
|
||||||
|
|
||||||
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
|
||||||
Contact: apiteam@swagger.io
|
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
Swagger Codegen version: 3.0.0-SNAPSHOT
|
|
||||||
|
|
||||||
=end
|
|
||||||
|
|
||||||
require 'spec_helper'
|
|
||||||
require 'json'
|
|
||||||
require 'date'
|
|
||||||
|
|
||||||
# Unit tests for Petstore::OuterString
|
|
||||||
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
||||||
# Please update as you see appropriate
|
|
||||||
describe 'OuterString' do
|
|
||||||
before do
|
|
||||||
# run before each test
|
|
||||||
@instance = Petstore::OuterString.new
|
|
||||||
end
|
|
||||||
|
|
||||||
after do
|
|
||||||
# run after each test
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'test an instance of OuterString' do
|
|
||||||
it 'should create an instance of OuterString' do
|
|
||||||
expect(@instance).to be_instance_of(Petstore::OuterString)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user