json_model_rb 0.1.16 → 0.1.18

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: f5c3f4ee507240e543a97f2ef35f1ec1bc998530547c4f841164c86baaf06c88
4
- data.tar.gz: 456f3afae37e3a2f5d040f20dabc7c86a3ae534c60ca40fefae2d6b24155e200
3
+ metadata.gz: 18911c5ebb83b6699be34560af2a7c8d964ff54c497a135603c3e5e1ae2c8a18
4
+ data.tar.gz: 3b2c5736aea3dac28d2a54ba783c0f933284cddf587c76aab20327323cfc876f
5
5
  SHA512:
6
- metadata.gz: 6404570b5ae3113f6f067da85b595fe066f866f226a87b381909593da31046f427ed59ccb08f7174986106b58dc47487bca9eeee1b7b4eb1312bb7f6102b6712
7
- data.tar.gz: 65a200948801a4238e3780ab24953b7e36a1404c1a4012a21af6e117b2cf24b2609aeb87eaaa36f8fa7d0d8917c9a97e9843dcb3e5976689c99152bc7e855ef1
6
+ metadata.gz: 9061ca8854c66c5f9d17f2d5381484b898c395b86d826ef0b2b7a1724d45cf1d297a3427d3fa7ca5e3000aeb262e5336d60f5436e4020064a3de01ea01ee40e2
7
+ data.tar.gz: 946fc6b81294a7eda74add39544f079691b032158f5de0a58e0b241a35ab66629a0398145273e7645bdc5614046d574e28879765cd04f4b104e69dc285e80e09
@@ -114,7 +114,7 @@ module JsonModel
114
114
  if !defined?(@local_properties)
115
115
  ancestor_properties = parent_schemas.flat_map { |property| property.properties.values }
116
116
  @local_properties = properties.select do |_key, property|
117
- ancestor_properties.none? { |ancestor_property| ancestor_property == property }
117
+ ancestor_properties.none? { |ancestor_property| ancestor_property.as_schema == property.as_schema }
118
118
  end
119
119
  end
120
120
 
@@ -17,6 +17,7 @@ module JsonModel
17
17
  def self.inherited(subclass)
18
18
  super
19
19
  subclass.schema_id(JsonModel.config.schema_id_naming_strategy.call(subclass))
20
+ subclass.schema_version(JsonModel.config.schema_version)
20
21
  subclass.meta_attributes[:$ref] = schema_id
21
22
  end
22
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonModel
4
- VERSION = '0.1.16'
4
+ VERSION = '0.1.18'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_model_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Gillesberger