cloudmersive-validate-api-client 2.1.9 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/docs/TextInputApi.md +118 -0
- data/docs/XxeDetectionBatchRequest.md +8 -0
- data/docs/XxeDetectionBatchResponse.md +8 -0
- data/docs/XxeDetectionRequestItem.md +11 -0
- data/docs/XxeDetectionResult.md +9 -0
- data/lib/cloudmersive-validate-api-client.rb +4 -0
- data/lib/cloudmersive-validate-api-client/api/text_input_api.rb +117 -0
- data/lib/cloudmersive-validate-api-client/models/xxe_detection_batch_request.rb +188 -0
- data/lib/cloudmersive-validate-api-client/models/xxe_detection_batch_response.rb +188 -0
- data/lib/cloudmersive-validate-api-client/models/xxe_detection_request_item.rb +220 -0
- data/lib/cloudmersive-validate-api-client/models/xxe_detection_result.rb +196 -0
- data/lib/cloudmersive-validate-api-client/version.rb +1 -1
- data/spec/api/text_input_api_spec.rb +27 -0
- data/spec/models/xxe_detection_batch_request_spec.rb +41 -0
- data/spec/models/xxe_detection_batch_response_spec.rb +41 -0
- data/spec/models/xxe_detection_request_item_spec.rb +59 -0
- data/spec/models/xxe_detection_result_spec.rb +47 -0
- metadata +14 -2
@@ -81,6 +81,33 @@ describe 'TextInputApi' do
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
+
# unit tests for text_input_check_xxe
|
85
|
+
# Protect text input from XML External Entity (XXE) attacks
|
86
|
+
# Detects XXE (XML External Entity) attacks from text input.
|
87
|
+
# @param value User-facing text input.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [BOOLEAN] :allow_internet_urls Optional: Set to true to allow Internet-based dependency URLs for DTDs and other XML External Entitites, set to false to block. Default is false.
|
90
|
+
# @option opts [String] :known_safe_urls Optional: Comma separated list of fully-qualified URLs that will automatically be considered safe.
|
91
|
+
# @option opts [String] :known_unsafe_urls Optional: Comma separated list of fully-qualified URLs that will automatically be considered unsafe.
|
92
|
+
# @return [XxeDetectionResult]
|
93
|
+
describe 'text_input_check_xxe test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# unit tests for text_input_check_xxe_batch
|
100
|
+
# Protect text input from XML External Entity (XXE) attacks
|
101
|
+
# Detects XXE (XML External Entity) attacks from text input.
|
102
|
+
# @param request
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [XxeDetectionBatchResponse]
|
105
|
+
describe 'text_input_check_xxe_batch test' do
|
106
|
+
it 'should work' do
|
107
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
84
111
|
# unit tests for text_input_protect_xss
|
85
112
|
# Protect text input from Cross-Site-Scripting (XSS) attacks through normalization
|
86
113
|
# Detects and removes XSS (Cross-Site-Scripting) attacks from text input through normalization. Returns the normalized result, as well as information on whether the original input contained an XSS risk.
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveValidateApiClient::XxeDetectionBatchRequest
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'XxeDetectionBatchRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveValidateApiClient::XxeDetectionBatchRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of XxeDetectionBatchRequest' do
|
31
|
+
it 'should create an instance of XxeDetectionBatchRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::XxeDetectionBatchRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "request_items"' 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
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveValidateApiClient::XxeDetectionBatchResponse
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'XxeDetectionBatchResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveValidateApiClient::XxeDetectionBatchResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of XxeDetectionBatchResponse' do
|
31
|
+
it 'should create an instance of XxeDetectionBatchResponse' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::XxeDetectionBatchResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "result_items"' 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
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveValidateApiClient::XxeDetectionRequestItem
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'XxeDetectionRequestItem' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveValidateApiClient::XxeDetectionRequestItem.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of XxeDetectionRequestItem' do
|
31
|
+
it 'should create an instance of XxeDetectionRequestItem' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::XxeDetectionRequestItem)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "input_text"' 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 "allow_internet_urls"' 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 "known_safe_urls"' 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 "known_unsafe_urls"' 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,47 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveValidateApiClient::XxeDetectionResult
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'XxeDetectionResult' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveValidateApiClient::XxeDetectionResult.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of XxeDetectionResult' do
|
31
|
+
it 'should create an instance of XxeDetectionResult' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::XxeDetectionResult)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "successful"' 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 "contained_xxe"' 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
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-validate-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -292,6 +292,10 @@ files:
|
|
292
292
|
- "./docs/XssProtectionBatchResponse.md"
|
293
293
|
- "./docs/XssProtectionRequestItem.md"
|
294
294
|
- "./docs/XssProtectionResult.md"
|
295
|
+
- "./docs/XxeDetectionBatchRequest.md"
|
296
|
+
- "./docs/XxeDetectionBatchResponse.md"
|
297
|
+
- "./docs/XxeDetectionRequestItem.md"
|
298
|
+
- "./docs/XxeDetectionResult.md"
|
295
299
|
- "./git_push.sh"
|
296
300
|
- "./lib/cloudmersive-validate-api-client.rb"
|
297
301
|
- "./lib/cloudmersive-validate-api-client/api/address_api.rb"
|
@@ -386,6 +390,10 @@ files:
|
|
386
390
|
- "./lib/cloudmersive-validate-api-client/models/xss_protection_batch_response.rb"
|
387
391
|
- "./lib/cloudmersive-validate-api-client/models/xss_protection_request_item.rb"
|
388
392
|
- "./lib/cloudmersive-validate-api-client/models/xss_protection_result.rb"
|
393
|
+
- "./lib/cloudmersive-validate-api-client/models/xxe_detection_batch_request.rb"
|
394
|
+
- "./lib/cloudmersive-validate-api-client/models/xxe_detection_batch_response.rb"
|
395
|
+
- "./lib/cloudmersive-validate-api-client/models/xxe_detection_request_item.rb"
|
396
|
+
- "./lib/cloudmersive-validate-api-client/models/xxe_detection_result.rb"
|
389
397
|
- "./lib/cloudmersive-validate-api-client/version.rb"
|
390
398
|
- "./spec/api/address_api_spec.rb"
|
391
399
|
- "./spec/api/date_time_api_spec.rb"
|
@@ -478,6 +486,10 @@ files:
|
|
478
486
|
- "./spec/models/xss_protection_batch_response_spec.rb"
|
479
487
|
- "./spec/models/xss_protection_request_item_spec.rb"
|
480
488
|
- "./spec/models/xss_protection_result_spec.rb"
|
489
|
+
- "./spec/models/xxe_detection_batch_request_spec.rb"
|
490
|
+
- "./spec/models/xxe_detection_batch_response_spec.rb"
|
491
|
+
- "./spec/models/xxe_detection_request_item_spec.rb"
|
492
|
+
- "./spec/models/xxe_detection_result_spec.rb"
|
481
493
|
- "./spec/spec_helper.rb"
|
482
494
|
homepage: https://www.cloudmersive.com/validate-api
|
483
495
|
licenses:
|