form_api 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/{.swagger-codegen-ignore → .openapi-generator-ignore} +3 -3
- data/.openapi-generator/VERSION +1 -0
- data/.rubocop.yml +154 -0
- data/Gemfile.lock +15 -16
- data/README.md +30 -28
- data/Rakefile +2 -0
- data/docs/{InlineResponse422.md → AuthenticationError.md} +3 -3
- data/docs/{InlineResponse401.md → AuthenticationSuccessResponse.md} +2 -2
- data/docs/CombinedSubmission.md +14 -0
- data/docs/CombinedSubmissionData.md +11 -0
- data/docs/CreateCombinedSubmissionResponse.md +10 -0
- data/docs/CreateSubmissionBatchResponse.md +12 -0
- data/docs/CreateSubmissionData.md +12 -0
- data/docs/CreateSubmissionDataBatchRequest.md +13 -0
- data/docs/CreateSubmissionResponse.md +10 -0
- data/docs/CreateSubmissionResponse1.md +10 -0
- data/docs/{InlineResponse200.md → Error.md} +3 -2
- data/docs/{InlineResponse400.md → InvalidRequest.md} +3 -3
- data/docs/PDFApi.md +148 -64
- data/docs/Submission.md +16 -0
- data/docs/SubmissionBatch.md +16 -0
- data/docs/SubmissionBatchData.md +11 -0
- data/docs/Template.md +21 -0
- data/form_api.gemspec +6 -11
- data/git_push.sh +3 -3
- data/lib/form_api.rb +22 -15
- data/lib/form_api/api/client.rb +91 -38
- data/lib/form_api/api/pdf_api.rb +222 -109
- data/lib/form_api/api_client.rb +13 -13
- data/lib/form_api/api_error.rb +3 -3
- data/lib/form_api/configuration.rb +26 -5
- data/lib/form_api/models/{inline_response_201_1.rb → authentication_error.rb} +25 -29
- data/lib/form_api/models/{inline_response_200.rb → authentication_success_response.rb} +15 -24
- data/lib/form_api/models/{inline_response_201_combined_submission.rb → combined_submission.rb} +42 -66
- data/lib/form_api/models/{create_combined_submission_body.rb → combined_submission_data.rb} +13 -18
- data/lib/form_api/models/{inline_response_201.rb → create_combined_submission_response.rb} +37 -35
- data/lib/form_api/models/create_submission_batch_response.rb +257 -0
- data/lib/form_api/models/{create_submission_batch_body.rb → create_submission_data.rb} +32 -19
- data/lib/form_api/models/{create_submission_body.rb → create_submission_data_batch_request.rb} +45 -18
- data/lib/form_api/models/create_submission_response.rb +237 -0
- data/lib/form_api/models/create_submission_response1.rb +237 -0
- data/lib/form_api/models/{inline_response_400.rb → error.rb} +17 -21
- data/lib/form_api/models/{inline_response_422.rb → invalid_request.rb} +17 -21
- data/lib/form_api/models/{templatestemplate_idsubmissionsbatch_submission.rb → submission.rb} +40 -26
- data/lib/form_api/models/submission_batch.rb +291 -0
- data/lib/form_api/models/{inline_response_401.rb → submission_batch_data.rb} +48 -24
- data/lib/form_api/models/{inline_response_200_1.rb → template.rb} +88 -152
- data/lib/form_api/version.rb +4 -4
- data/spec/api/client_spec.rb +197 -23
- data/spec/api/pdf_api_spec.rb +168 -63
- data/spec/api_client_spec.rb +37 -37
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/authentication_error_spec.rb +51 -0
- data/spec/models/authentication_success_response_spec.rb +45 -0
- data/spec/models/combined_submission_data_spec.rb +59 -0
- data/spec/models/combined_submission_spec.rb +81 -0
- data/spec/models/create_combined_submission_response_spec.rb +57 -0
- data/spec/models/create_submission_batch_response_spec.rb +69 -0
- data/spec/models/create_submission_data_batch_request_spec.rb +71 -0
- data/spec/models/create_submission_data_spec.rb +65 -0
- data/spec/models/create_submission_response1_spec.rb +57 -0
- data/spec/models/create_submission_response_spec.rb +57 -0
- data/spec/models/error_spec.rb +51 -0
- data/spec/models/invalid_request_spec.rb +51 -0
- data/spec/models/submission_batch_data_spec.rb +59 -0
- data/spec/models/submission_batch_spec.rb +93 -0
- data/spec/models/submission_spec.rb +93 -0
- data/spec/models/template_spec.rb +123 -0
- data/spec/spec_helper.rb +3 -14
- metadata +70 -95
- data/.swagger-codegen/VERSION +0 -1
- data/docs/CreateCombinedSubmissionBody.md +0 -11
- data/docs/CreateSubmissionBatchBody.md +0 -10
- data/docs/CreateSubmissionBody.md +0 -10
- data/docs/InlineResponse2001.md +0 -21
- data/docs/InlineResponse201.md +0 -9
- data/docs/InlineResponse2011.md +0 -9
- data/docs/InlineResponse201CombinedSubmission.md +0 -14
- data/docs/TemplatestemplateIdsubmissionsbatchSubmission.md +0 -14
- data/spec/models/create_combined_submission_body_spec.rb +0 -60
- data/spec/models/create_submission_batch_body_spec.rb +0 -54
- data/spec/models/create_submission_body_spec.rb +0 -54
- data/spec/models/inline_response_200_1_spec.rb +0 -124
- data/spec/models/inline_response_200_spec.rb +0 -46
- data/spec/models/inline_response_201_1_spec.rb +0 -52
- data/spec/models/inline_response_201_combined_submission_spec.rb +0 -82
- data/spec/models/inline_response_201_spec.rb +0 -52
- data/spec/models/inline_response_400_spec.rb +0 -52
- data/spec/models/inline_response_401_spec.rb +0 -42
- data/spec/models/inline_response_422_spec.rb +0 -52
- data/spec/models/templatestemplate_idsubmissionsbatch_submission_spec.rb +0 -82
- data/spec/vcr_cassettes/FormAPI_Client/should_generate_a_PDF_and_wait_for_the_submission_to_be_processed.yml +0 -127
data/spec/api_client_spec.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#API V1
|
|
3
3
|
|
|
4
|
-
#No description provided (generated by
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
|
-
Generated by: https://
|
|
9
|
-
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -51,11 +51,11 @@ describe FormAPI::ApiClient do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe
|
|
54
|
+
describe 'params_encoding in #build_request' do
|
|
55
55
|
let(:config) { FormAPI::Configuration.new }
|
|
56
56
|
let(:api_client) { FormAPI::ApiClient.new(config) }
|
|
57
57
|
|
|
58
|
-
it
|
|
58
|
+
it 'defaults to nil' do
|
|
59
59
|
expect(FormAPI::Configuration.default.params_encoding).to eq(nil)
|
|
60
60
|
expect(config.params_encoding).to eq(nil)
|
|
61
61
|
|
|
@@ -63,18 +63,18 @@ describe FormAPI::ApiClient do
|
|
|
63
63
|
expect(request.options[:params_encoding]).to eq(nil)
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
it
|
|
66
|
+
it 'can be customized' do
|
|
67
67
|
config.params_encoding = :multi
|
|
68
68
|
request = api_client.build_request(:get, '/test')
|
|
69
69
|
expect(request.options[:params_encoding]).to eq(:multi)
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
describe
|
|
73
|
+
describe 'timeout in #build_request' do
|
|
74
74
|
let(:config) { FormAPI::Configuration.new }
|
|
75
75
|
let(:api_client) { FormAPI::ApiClient.new(config) }
|
|
76
76
|
|
|
77
|
-
it
|
|
77
|
+
it 'defaults to 0' do
|
|
78
78
|
expect(FormAPI::Configuration.default.timeout).to eq(0)
|
|
79
79
|
expect(config.timeout).to eq(0)
|
|
80
80
|
|
|
@@ -82,88 +82,88 @@ describe FormAPI::ApiClient do
|
|
|
82
82
|
expect(request.options[:timeout]).to eq(0)
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
it
|
|
85
|
+
it 'can be customized' do
|
|
86
86
|
config.timeout = 100
|
|
87
87
|
request = api_client.build_request(:get, '/test')
|
|
88
88
|
expect(request.options[:timeout]).to eq(100)
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
describe
|
|
92
|
+
describe '#deserialize' do
|
|
93
93
|
it "handles Array<Integer>" do
|
|
94
94
|
api_client = FormAPI::ApiClient.new
|
|
95
|
-
headers = {'Content-Type' => 'application/json'}
|
|
95
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
96
96
|
response = double('response', headers: headers, body: '[12, 34]')
|
|
97
97
|
data = api_client.deserialize(response, 'Array<Integer>')
|
|
98
98
|
expect(data).to be_instance_of(Array)
|
|
99
99
|
expect(data).to eq([12, 34])
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
it
|
|
102
|
+
it 'handles Array<Array<Integer>>' do
|
|
103
103
|
api_client = FormAPI::ApiClient.new
|
|
104
|
-
headers = {'Content-Type' => 'application/json'}
|
|
104
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
105
105
|
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
|
106
106
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
|
107
107
|
expect(data).to be_instance_of(Array)
|
|
108
108
|
expect(data).to eq([[12, 34], [56]])
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
-
it
|
|
111
|
+
it 'handles Hash<String, String>' do
|
|
112
112
|
api_client = FormAPI::ApiClient.new
|
|
113
|
-
headers = {'Content-Type' => 'application/json'}
|
|
113
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
114
114
|
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
|
115
115
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
|
116
116
|
expect(data).to be_instance_of(Hash)
|
|
117
|
-
expect(data).to eq(
|
|
117
|
+
expect(data).to eq(:message => 'Hello')
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
describe "#object_to_hash" do
|
|
122
|
-
it
|
|
122
|
+
it 'ignores nils and includes empty arrays' do
|
|
123
123
|
# uncomment below to test object_to_hash for model
|
|
124
|
-
#api_client = FormAPI::ApiClient.new
|
|
125
|
-
#_model = FormAPI::ModelName.new
|
|
124
|
+
# api_client = FormAPI::ApiClient.new
|
|
125
|
+
# _model = FormAPI::ModelName.new
|
|
126
126
|
# update the model attribute below
|
|
127
|
-
#_model.id = 1
|
|
127
|
+
# _model.id = 1
|
|
128
128
|
# update the expected value (hash) below
|
|
129
|
-
#expected = {id: 1, name: '', tags: []}
|
|
130
|
-
#expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
129
|
+
# expected = {id: 1, name: '', tags: []}
|
|
130
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
describe
|
|
134
|
+
describe '#build_collection_param' do
|
|
135
135
|
let(:param) { ['aa', 'bb', 'cc'] }
|
|
136
136
|
let(:api_client) { FormAPI::ApiClient.new }
|
|
137
137
|
|
|
138
|
-
it
|
|
138
|
+
it 'works for csv' do
|
|
139
139
|
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
it
|
|
142
|
+
it 'works for ssv' do
|
|
143
143
|
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
it
|
|
146
|
+
it 'works for tsv' do
|
|
147
147
|
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
-
it
|
|
150
|
+
it 'works for pipes' do
|
|
151
151
|
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
it
|
|
154
|
+
it 'works for multi' do
|
|
155
155
|
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
|
156
156
|
end
|
|
157
157
|
|
|
158
|
-
it
|
|
158
|
+
it 'fails for invalid collection format' do
|
|
159
159
|
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
160
160
|
end
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
-
describe
|
|
163
|
+
describe '#json_mime?' do
|
|
164
164
|
let(:api_client) { FormAPI::ApiClient.new }
|
|
165
165
|
|
|
166
|
-
it
|
|
166
|
+
it 'works' do
|
|
167
167
|
expect(api_client.json_mime?(nil)).to eq false
|
|
168
168
|
expect(api_client.json_mime?('')).to eq false
|
|
169
169
|
|
|
@@ -177,10 +177,10 @@ describe FormAPI::ApiClient do
|
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
describe
|
|
180
|
+
describe '#select_header_accept' do
|
|
181
181
|
let(:api_client) { FormAPI::ApiClient.new }
|
|
182
182
|
|
|
183
|
-
it
|
|
183
|
+
it 'works' do
|
|
184
184
|
expect(api_client.select_header_accept(nil)).to be_nil
|
|
185
185
|
expect(api_client.select_header_accept([])).to be_nil
|
|
186
186
|
|
|
@@ -193,10 +193,10 @@ describe FormAPI::ApiClient do
|
|
|
193
193
|
end
|
|
194
194
|
end
|
|
195
195
|
|
|
196
|
-
describe
|
|
196
|
+
describe '#select_header_content_type' do
|
|
197
197
|
let(:api_client) { FormAPI::ApiClient.new }
|
|
198
198
|
|
|
199
|
-
it
|
|
199
|
+
it 'works' do
|
|
200
200
|
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
|
201
201
|
expect(api_client.select_header_content_type([])).to eq('application/json')
|
|
202
202
|
|
|
@@ -208,10 +208,10 @@ describe FormAPI::ApiClient do
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
describe
|
|
211
|
+
describe '#sanitize_filename' do
|
|
212
212
|
let(:api_client) { FormAPI::ApiClient.new }
|
|
213
213
|
|
|
214
|
-
it
|
|
214
|
+
it 'works' do
|
|
215
215
|
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
|
216
216
|
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
|
217
217
|
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#API V1
|
|
3
3
|
|
|
4
|
-
#No description provided (generated by
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
|
-
Generated by: https://
|
|
9
|
-
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -17,25 +17,25 @@ describe FormAPI::Configuration do
|
|
|
17
17
|
|
|
18
18
|
before(:each) do
|
|
19
19
|
# uncomment below to setup host and base_path
|
|
20
|
-
#require 'URI'
|
|
21
|
-
#uri = URI.parse("https://app.formapi.io/api/v1")
|
|
22
|
-
#FormAPI.configure do |c|
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
#end
|
|
20
|
+
# require 'URI'
|
|
21
|
+
# uri = URI.parse("https://app.formapi.io/api/v1")
|
|
22
|
+
# FormAPI.configure do |c|
|
|
23
|
+
# c.host = uri.host
|
|
24
|
+
# c.base_path = uri.path
|
|
25
|
+
# end
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
describe '#base_url' do
|
|
29
29
|
it 'should have the default value' do
|
|
30
30
|
# uncomment below to test default value of the base path
|
|
31
|
-
#expect(config.base_url).to eq("https://app.formapi.io/api/v1")
|
|
31
|
+
# expect(config.base_url).to eq("https://app.formapi.io/api/v1")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'should remove trailing slashes' do
|
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
|
36
36
|
config.base_path = base_path
|
|
37
37
|
# uncomment below to test trailing slashes
|
|
38
|
-
#expect(config.base_url).to eq("https://app.formapi.io/api/v1")
|
|
38
|
+
# expect(config.base_url).to eq("https://app.formapi.io/api/v1")
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API V1
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for FormAPI::AuthenticationError
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'AuthenticationError' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = FormAPI::AuthenticationError.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of AuthenticationError' do
|
|
31
|
+
it 'should create an instance of AuthenticationError' do
|
|
32
|
+
expect(@instance).to be_instance_of(FormAPI::AuthenticationError)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "status"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["error"])
|
|
39
|
+
# validator.allowable_values.each do |value|
|
|
40
|
+
# expect { @instance.status = value }.not_to raise_error
|
|
41
|
+
# end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "error"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API V1
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for FormAPI::AuthenticationSuccessResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'AuthenticationSuccessResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = FormAPI::AuthenticationSuccessResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of AuthenticationSuccessResponse' do
|
|
31
|
+
it 'should create an instance of AuthenticationSuccessResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(FormAPI::AuthenticationSuccessResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "status"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["success"])
|
|
39
|
+
# validator.allowable_values.each do |value|
|
|
40
|
+
# expect { @instance.status = value }.not_to raise_error
|
|
41
|
+
# end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API V1
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for FormAPI::CombinedSubmissionData
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'CombinedSubmissionData' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = FormAPI::CombinedSubmissionData.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of CombinedSubmissionData' do
|
|
31
|
+
it 'should create an instance of CombinedSubmissionData' do
|
|
32
|
+
expect(@instance).to be_instance_of(FormAPI::CombinedSubmissionData)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "test"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "submission_ids"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "metadata"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "expires_in"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API V1
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for FormAPI::CombinedSubmission
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'CombinedSubmission' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = FormAPI::CombinedSubmission.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of CombinedSubmission' do
|
|
31
|
+
it 'should create an instance of CombinedSubmission' do
|
|
32
|
+
expect(@instance).to be_instance_of(FormAPI::CombinedSubmission)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "metadata"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "expired"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "expires_at"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "download_url"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "submission_ids"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "id"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
describe 'test attribute "state"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "error"])
|
|
75
|
+
# validator.allowable_values.each do |value|
|
|
76
|
+
# expect { @instance.state = value }.not_to raise_error
|
|
77
|
+
# end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
end
|