From 90709bc01cad660333dbaa57aba4c3408c0257ec Mon Sep 17 00:00:00 2001 From: Lucas Hosseini Date: Wed, 13 Jan 2016 05:46:07 +0100 Subject: [PATCH] Experimental feature. --- CHANGELOG.md | 2 +- .../serializer/adapter/json_api/deserialization.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c84beaa8..5f8bd8341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ Breaking changes: Features: -- [#1248](https://github.com/rails-api/active_model_serializers/pull/1248) Add support for JSON API deserialization (@beauby) +- [#1248](https://github.com/rails-api/active_model_serializers/pull/1248) Experimental: Add support for JSON API deserialization (@beauby) - [#1378](https://github.com/rails-api/active_model_serializers/pull/1378) Change association blocks to be evaluated in *serializer* scope, rather than *association* scope. (@bf4) * Syntax changes from e.g. diff --git a/lib/active_model/serializer/adapter/json_api/deserialization.rb b/lib/active_model/serializer/adapter/json_api/deserialization.rb index b72f2ecba..5f35a882d 100644 --- a/lib/active_model/serializer/adapter/json_api/deserialization.rb +++ b/lib/active_model/serializer/adapter/json_api/deserialization.rb @@ -2,6 +2,9 @@ module ActiveModel class Serializer module Adapter class JsonApi + # NOTE(Experimental): + # This is an experimental feature. Both the interface and internals could be subject + # to changes. module Deserialization InvalidDocument = Class.new(ArgumentError)