graphiti 1.10.1 → 1.10.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: 2c2dc193574879e1c451e5603c29720d127180ab16929d778f884cca9efc384d
4
- data.tar.gz: b20a79f85adcf81b5a88feee6ab01c3a103888bc1dd55a49750a1e7431742336
3
+ metadata.gz: fb69f1b503241f9a283e3a2d9a68eb3c3f8c29ec3f4589fa6cb15768bfc8f7f5
4
+ data.tar.gz: 2301d27dbd072face4b392993b7eb7fb26777bde44d8040f33a4173e8ac35118
5
5
  SHA512:
6
- metadata.gz: e3161db42aa26f7d57df65471408b0bae2a9043337b21ba4d4c7419dff659e62ef8cb1559099a5ab970f509edbb5cf37ae351203d51d0c5aac656bcf39582d02
7
- data.tar.gz: 796434d947948ca43a0630faaea193f9816935aa3d96f4385eab3b28b9845aca31a9c14b1c6e860f0b35aeb228d2908c4cc9ab8125959b92e7d9d2dc24bc8771
6
+ metadata.gz: 132c6f094beec5643d08808d2ef6503982021eff67410540fc5d90b14f1339e823620fff4d25e06c846dac1760717218aa26174162c1ed775e4c9b0877bffc19
7
+ data.tar.gz: d48f8895952b4774adb37302adf1891762afd7da6d28141ebe6951347f58368a431cd67502fac7a9b4c819e2713a8759b350686bba7236db027aa25602c2c428
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [1.10.2](https://github.com/graphiti-api/graphiti/compare/v1.10.1...v1.10.2) (2026-03-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Ensure RequestValidator validates resource relationships ([ddb5ad2](https://github.com/graphiti-api/graphiti/commit/ddb5ad2b69330774bd1a47935ed89a9fe4396a54))
9
+
3
10
  ## [1.10.1](https://github.com/graphiti-api/graphiti/compare/v1.10.0...v1.10.1) (2026-01-09)
4
11
 
5
12
 
@@ -49,6 +49,13 @@ module Graphiti
49
49
  private
50
50
 
51
51
  def process_relationships(resource, relationships, payload_path)
52
+ relationships.each_key do |name|
53
+ unless resource.class.sideload(name.to_sym)
54
+ full_key = fully_qualified_key(name, payload_path, :relationships)
55
+ @errors.add(full_key, :invalid_relationship, message: "is not a valid relationship")
56
+ end
57
+ end
58
+
52
59
  opts = {
53
60
  resource: resource,
54
61
  relationships: relationships
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.10.1"
2
+ VERSION = "1.10.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-09 00:00:00.000000000 Z
11
+ date: 2026-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable