json-api-serializer icon indicating copy to clipboard operation
json-api-serializer copied to clipboard

Node.js/browser framework agnostic JSON API (http://jsonapi.org/) serializer.

Results 8 json-api-serializer issues
Sort by recently updated
recently updated
newest added

When the relationship's value only have an id key in their structure, the relation is in "relationships" but not in the "included" array. The serializer code (simplified) ```ts const serializer...

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

I've setup: ``` export const defaultSerializerOptions = { id : 'id', blacklist : [ 'type' ], blacklistOnDeserialize: [ 'id', 'type', 'createdAt', 'updatedAt' ] }; ``` But still on deserialization is...

Hey there, i am currently evaluating this package to be used in a TypeScript REST API. So i was wondering, if there are some TypeScript Definitions available?! All the best

help wanted
good first issue

Add a `data` option function that returns the data to serialize for the relationship. Example: Input data can contains meta information ( e.g. `total`) on data for a relationship. ```json...

When requesting results with included data, the response should always have the `included` top-level key. The response structure should not change depending on the data sourced to generate the response....

The JSON:API spec defines relationships links such as: ``` GET /articles/1/relationships/tags HTTP/1.1 200 OK Content-Type: application/vnd.api+json { "links": { "self": "/articles/1/relationships/tags", "related": "/articles/1/tags" }, "data": [ { "type": "tags", "id":...

enhancement

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...

dependencies