zernio-sdk 0.0.557 → 0.0.558

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c773df01fa3d872887930b82b8cc50c3218f491096345aa1af5a95dd93f2cfd1
4
- data.tar.gz: b7828a6bcf6ad20a6dd3e2a21c1a396c27cfb44c5c936df2ee6184f45823fc1c
3
+ metadata.gz: 95b819606f8aa6f719429e45eb155a7f80139d338d97666f789560d210f691b0
4
+ data.tar.gz: ef93873a14de4cfeaf1ef26cc3ed9003a8278ee130f1a00ac85d931e5b288759
5
5
  SHA512:
6
- metadata.gz: b1af2afebbf4fde4f0802583edf9c06ba6ed5520c11a031fd62b1834ef5f53408c55b0b7f6472e10ef6adc64e8be4d3cc6951b3a72855d3c5649d0b6ffe944d6
7
- data.tar.gz: 514484dcc94ec4f41e5119430b76f505c01a14ab9b68b9530eb89d9c2092cc45ec7a16d9b8df51577e096f01e3fa1f2ee752bdea333ea821dcf078fe29e0fcaf
6
+ metadata.gz: 4d39a820634b7047a18a835ce192297eeb7843b00a0f65c2004d396f183a7cecbd89e6162c6303cd7dc077ab69d3d93b688816d0941dd4305fdab42ed54404b1
7
+ data.tar.gz: 31f9620161b4a8c22797586445fc6c6c765340ac49c5585058b9c43adf8953a854382e0bdaf88c0c53d093c2e856ab2b19cc5afa48e80e2e2dc6d98251ebc5d4
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **validate_only** | **Boolean** | | [optional] |
7
+ | **validate_only** | **Boolean** | Always true in a validate-only response. | [optional] |
8
8
  | **results** | [**Array<CreateStandaloneAd200ResponseResultsInner>**](CreateStandaloneAd200ResponseResultsInner.md) | | [optional] |
9
9
  | **message** | **String** | | [optional] |
10
10
 
@@ -15,34 +15,13 @@ require 'time'
15
15
 
16
16
  module Zernio
17
17
  class CreateStandaloneAd200Response < ApiModelBase
18
+ # Always true in a validate-only response.
18
19
  attr_accessor :validate_only
19
20
 
20
21
  attr_accessor :results
21
22
 
22
23
  attr_accessor :message
23
24
 
24
- class EnumAttributeValidator
25
- attr_reader :datatype
26
- attr_reader :allowable_values
27
-
28
- def initialize(datatype, allowable_values)
29
- @allowable_values = allowable_values.map do |value|
30
- case datatype.to_s
31
- when /Integer/i
32
- value.to_i
33
- when /Float/i
34
- value.to_f
35
- else
36
- value
37
- end
38
- end
39
- end
40
-
41
- def valid?(value)
42
- !value || allowable_values.include?(value)
43
- end
44
- end
45
-
46
25
  # Attribute mapping from ruby-style variable name to JSON key.
47
26
  def self.attribute_map
48
27
  {
@@ -120,21 +99,9 @@ module Zernio
120
99
  # @return true if the model is valid
121
100
  def valid?
122
101
  warn '[DEPRECATED] the `valid?` method is obsolete'
123
- validate_only_validator = EnumAttributeValidator.new('Boolean', ["true"])
124
- return false unless validate_only_validator.valid?(@validate_only)
125
102
  true
126
103
  end
127
104
 
128
- # Custom attribute writer method checking allowed values (enum).
129
- # @param [Object] validate_only Object to be assigned
130
- def validate_only=(validate_only)
131
- validator = EnumAttributeValidator.new('Boolean', ["true"])
132
- unless validator.valid?(validate_only)
133
- fail ArgumentError, "invalid value for \"validate_only\", must be one of #{validator.allowable_values}."
134
- end
135
- @validate_only = validate_only
136
- end
137
-
138
105
  # Checks equality by comparing each attribute.
139
106
  # @param [Object] Object to be compared
140
107
  def ==(o)
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.557'
14
+ VERSION = '0.0.558'
15
15
  end
data/openapi.yaml CHANGED
@@ -36831,7 +36831,7 @@ paths:
36831
36831
  schema:
36832
36832
  type: object
36833
36833
  properties:
36834
- validateOnly: { type: boolean, enum: [true] }
36834
+ validateOnly: { type: boolean, description: 'Always true in a validate-only response.' }
36835
36835
  results:
36836
36836
  type: array
36837
36837
  items:
@@ -30,10 +30,6 @@ describe Zernio::CreateStandaloneAd200Response do
30
30
  describe 'test attribute "validate_only"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('Boolean', ["true"])
34
- # validator.allowable_values.each do |value|
35
- # expect { instance.validate_only = value }.not_to raise_error
36
- # end
37
33
  end
38
34
  end
39
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zernio-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.557
4
+ version: 0.0.558
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator