-
Hi,
Behavior for serializer passed empty collection is to return nil
I think it would make more sense for the serializer to return `[]`. Ideally would work with empty Array and empty Relation.
…
-
I have a Reservation model that `has_many` "co-reservations" which are also Reservation instances.
This sets of a circular (infinite) reference that is bad and sad.
Is there a way to do this r…
-
The following method in `relationship.rb` uses a check for `respond_to? :map` to determine whether an association is plural or not:
```rb
def ids_hash_from_record_and_relationship(record, para…
-
All numbers are getting transformed into strings. Is this a common behaviour for numbers or do I need to configure the usage of the gem?
## Database value via rails console
![image](https://user-i…
-
Hi! I use the latest version (1.5) of the gem. I have the following construct:
```ruby
# app/models/project.rb
class Project < ActiveRecord::Base
belongs_to :owner, class_name: 'Person'
be…
-
Assume I'm thinking to adopt this standard to my API's.
A question that can arise - How much actually the spec is used? How many companies standard their API's by the spec.
Adding a section in R…
-
The following fails with `undefined method 'person_path'`
```ruby
attribute :person_path do |obj|
url_helpers.person_path obj
end
attribute :edit_person_path do |obj|
"#{obj.p…
-
In my backend I have a conversation model that olds a foreign_key to the last sent message in that conversation. If there is no last message, this normaliser fails.
Example:
```javascript
impor…
-
After documenting #64, I felt a little odd about the `polymorphic` option I added to the `has_many` | `belongs_to` | `has_one` methods:
```ruby
class ProjectSerializer
include FastJsonapi::Obje…
-
I used JSON:API back around 2016, when it had the [bulk extension](https://github.com/json-api/json-api/blob/9c7a03dbc37f80f6ca81b16d444c960e96dd7a57/extensions/bulk/index.md). I allowed attributes in…