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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48e1067531cf426f709ebe2dfffe4548cfd161b19f9481ca87599a0152e1fcab
4
- data.tar.gz: d4387ad9de93bceebb05e94b69560f43f7b374cad28588a3ff0599d9f8d17667
3
+ metadata.gz: a4868bbd147183e51c6f9221695daf82a9bcafb6a8622b723b67fe79bc3b72c3
4
+ data.tar.gz: d80029b08f825959f68fe88e94c323a0f334c0279b360ca1489b3b9bd4d169f8
5
5
  SHA512:
6
- metadata.gz: bc95249593570b003e7dc49881fe4a3a34a60efc535be6f1803c17db7cd6475317eaacb0c9ff5c1f11ba24bb18ff5065d86d070be92e24f7ff4d1e1fa88f14e9
7
- data.tar.gz: 8d915f5cbd2f3fdfea67a1d94f13803d9a1125db6a8a21fe3cec81233693017391e40f69feee0fd9a60a8bb6926764cc0d7de1c77a3746c7ef87e2672acdd978
6
+ metadata.gz: 0037ac0f502c551f6a76328c8d53ea9fbc7e78ea57598c3eec1e2e387f475ef5a0c3b46e1f058034ce246f5d7b6ff54395e98ca963d7058cc4a338b1e8709d42
7
+ data.tar.gz: 8da38ed81e49880c62b998967dce5d7c4caf863ff83e08e6eba2de5a182d9257ef24e1a5aa1c0d65f074c95ae94a997dc4198badcb210df5452241aba176ae7b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.6.2] - 2025-12-09
4
+
5
+ ### Fixed
6
+ - The `item_schema_options` is now properly passed to the `Array` property.
7
+
3
8
  ## [0.6.1] - 2025-10-13
4
9
 
5
10
  ### Fixed
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Verquest
4
- GEM_VERSION = "0.6.1"
4
+ GEM_VERSION = "0.6.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verquest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Hlavicka