verquest 0.6.1 → 0.6.2
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/CHANGELOG.md +5 -0
- data/lib/verquest/base/private_class_methods.rb +3 -2
- data/lib/verquest/gem_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4868bbd147183e51c6f9221695daf82a9bcafb6a8622b723b67fe79bc3b72c3
|
|
4
|
+
data.tar.gz: d80029b08f825959f68fe88e94c323a0f334c0279b360ca1489b3b9bd4d169f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0037ac0f502c551f6a76328c8d53ea9fbc7e78ea57598c3eec1e2e387f475ef5a0c3b46e1f058034ce246f5d7b6ff54395e98ca963d7058cc4a338b1e8709d42
|
|
7
|
+
data.tar.gz: 8da38ed81e49880c62b998967dce5d7c4caf863ff83e08e6eba2de5a182d9257ef24e1a5aa1c0d65f074c95ae94a997dc4198badcb210df5452241aba176ae7b
|
data/CHANGELOG.md
CHANGED
|
@@ -265,9 +265,10 @@ module Verquest
|
|
|
265
265
|
# @param required [Boolean, Array<Symbol>] Whether the array property is required
|
|
266
266
|
# @param nullable [Boolean] Whether this array can be null
|
|
267
267
|
# @param map [String, nil] An optional mapping to another array property
|
|
268
|
+
# @param item_schema_options [Hash] Additional JSON schema options for the array items (merged with custom type options)
|
|
268
269
|
# @param schema_options [Hash] Additional schema options for the array property
|
|
269
270
|
# @return [void]
|
|
270
|
-
def array(name, type:, required: nil, nullable: nil, map: nil, **schema_options)
|
|
271
|
+
def array(name, type:, required: nil, nullable: nil, map: nil, item_schema_options: {}, **schema_options)
|
|
271
272
|
camelize(schema_options)
|
|
272
273
|
|
|
273
274
|
type = default_options.fetch(:type, type)
|
|
@@ -275,7 +276,7 @@ module Verquest
|
|
|
275
276
|
nullable = default_options.fetch(:nullable, false) if nullable.nil?
|
|
276
277
|
schema_options = default_options.except(:type, :required, :nullable).merge(schema_options)
|
|
277
278
|
|
|
278
|
-
array = Properties::Array.new(name:, type:, required:, nullable:, map:, **schema_options)
|
|
279
|
+
array = Properties::Array.new(name:, type:, required:, nullable:, map:, item_schema_options:, **schema_options)
|
|
279
280
|
current_scope.add(array)
|
|
280
281
|
end
|
|
281
282
|
|
data/lib/verquest/gem_version.rb
CHANGED