smplkit 3.0.32 → 3.0.33
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78cfb3f85972678c7e6a5ba98fe400de6a60ff7c36517a4d00ec3b07f74f524d
|
|
4
|
+
data.tar.gz: ba49dfceadbe480abeda8ad0d2a4ebeeb7757f73af4b12b78885ddbb46240097
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb6bbc9c9af1b9b2c9c2d5761b08260aa9b9caf70884d786f6a740fdff5add3dff0bf9eb41660888473934d33403d2e3702ef628e045c46235aa6ff7de881cf5
|
|
7
|
+
data.tar.gz: fcc3e36fd16fcb43f75f72d3ef3bc69eee6c27602ea6e824cc25e59c35a655288ab818f79468e77d1b1677b7f1fe35b1bd8e43abb06851c0989ecfc16144f952
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module SmplkitGeneratedClient::Flags
|
|
17
17
|
# A feature flag whose value is resolved at runtime from environment rules and a default. A flag has a value type (`BOOLEAN`, `STRING`, `NUMERIC`, or `JSON`) and either a fixed set of allowed values (constrained) or accepts any value matching the type (unconstrained). Each environment can enable or disable the flag, set its own default, and define targeting rules that override the default for specific evaluation contexts.
|
|
18
18
|
class Flag < ApiModelBase
|
|
19
|
-
# Human-readable display name for the flag.
|
|
19
|
+
# Human-readable display name for the flag. Cannot be empty or whitespace-only.
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
22
22
|
# Human-readable description of the flag's purpose.
|
|
@@ -200,6 +200,10 @@ module SmplkitGeneratedClient::Flags
|
|
|
200
200
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
+
if @name.to_s.length < 1
|
|
204
|
+
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
205
|
+
end
|
|
206
|
+
|
|
203
207
|
if @type.nil?
|
|
204
208
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
205
209
|
end
|
|
@@ -212,6 +216,7 @@ module SmplkitGeneratedClient::Flags
|
|
|
212
216
|
def valid?
|
|
213
217
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
214
218
|
return false if @name.nil?
|
|
219
|
+
return false if @name.to_s.length < 1
|
|
215
220
|
return false if @type.nil?
|
|
216
221
|
type_validator = EnumAttributeValidator.new('String', ["BOOLEAN", "STRING", "NUMERIC", "JSON"])
|
|
217
222
|
return false unless type_validator.valid?(@type)
|
|
@@ -225,6 +230,10 @@ module SmplkitGeneratedClient::Flags
|
|
|
225
230
|
fail ArgumentError, 'name cannot be nil'
|
|
226
231
|
end
|
|
227
232
|
|
|
233
|
+
if name.to_s.length < 1
|
|
234
|
+
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
235
|
+
end
|
|
236
|
+
|
|
228
237
|
@name = name
|
|
229
238
|
end
|
|
230
239
|
|