graphiti 1.13.5 → 1.13.6

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: e5500e6dd80e00e5ee1da0c386c734e3c6eb4c5b55a0f9fa93477705e56cc6da
4
- data.tar.gz: c91f34b4930b2607d8cb1f638164f86822bb158b921f0c8da9f3014689cd157f
3
+ metadata.gz: 50392de90dfb87c466fb106475590cc9fbea2a8d5311ff74c3808efb4bb7bd5c
4
+ data.tar.gz: 3fd84fb442296cd3620ca31a1528aa9dd697a57d05095d7b49a58c41b77edc3a
5
5
  SHA512:
6
- metadata.gz: 5126a6d26ce6070fd37cfa20eeba213c35905b60be85826daaa6003561cc9d0a9793e99b26933c8576a879f9d3c5071c4dd541de773b4e63e6320b269b75b930
7
- data.tar.gz: 5436a12807dec67f33900300cdee4eb739151aad12d00a8bd9ee0c009c4e08fd109cfb000754af132e73b73aada13e0dc63cf216e79cd6f40d4c4b3332b9fb90
6
+ metadata.gz: 770a509901ac519c8a6a3f28147c0a191d6afedb808c0965eccfb8dcfc6fd2ceda5475bb63e04698932d0dc8dda1463eae1f2227f11db1c4296057724ab96f34
7
+ data.tar.gz: 1cbef5113927d195f6283a107352b27ba1f6c2adef3f23eeb2c9fdd5683af850e52c5a7b52b05fe099e99f5fce0e1c8ae79504d56f66e9c5eeb5833a364d819d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [1.13.6](https://github.com/graphiti-api/graphiti/compare/v1.13.5...v1.13.6) (2026-10-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * validate the relationships of a document wrapped in _jsonapi ([cfb624c](https://github.com/graphiti-api/graphiti/commit/cfb624c284f0ad357709ebb2297b831aa6746feb))
9
+
3
10
  ## [1.13.5](https://github.com/graphiti-api/graphiti/compare/v1.13.4...v1.13.5) (2026-09-04)
4
11
 
5
12
 
@@ -16,11 +16,11 @@ module Graphiti
16
16
  # Right now, all requests - even reads - go through the validator
17
17
  # In the future these should have their own validation logic, but
18
18
  # for now we can just bypass
19
- return errors.blank? unless @params.has_key?(:data)
19
+ return errors.blank? unless document.has_key?(:data)
20
20
 
21
21
  resource = @root_resource
22
22
 
23
- if @params[:data].has_key?(:type)
23
+ if document[:data].has_key?(:type)
24
24
  if (meta_type = deserialized_payload.meta[:type].try(:to_sym))
25
25
  if @root_resource.type != meta_type && @root_resource.polymorphic?
26
26
  resource = @root_resource.class.resource_for_type(meta_type).new
@@ -50,6 +50,10 @@ module Graphiti
50
50
 
51
51
  private
52
52
 
53
+ def document
54
+ deserialized_payload.params
55
+ end
56
+
53
57
  def validate_page
54
58
  page = @params[:page]
55
59
  return if page.nil? || page.respond_to?(:each_pair)
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.13.5"
2
+ VERSION = "1.13.6"
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.13.5
4
+ version: 1.13.6
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-09-04 00:00:00.000000000 Z
11
+ date: 2026-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable