4.0.1 • Published 6 years ago

@rheactorjs/models v4.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

models

npm version Build Status Greenkeeper badge js-standard-style semantic-release Test Coverage Code Climate

A collection of models.

JSON-LD

:information_source: See also: RESTful API in server

$context

When creating an object instance from a JSON representation, the fromJSON() method expects the presence of the correct $context value. When serializing and unserializing using these models, this is done automatically.

This makes it impossible to use the data for one entity as another.

$contextVersion

The $contextVersion was added to enable clients that cache entities, e.g. in localStorage, to check if their application code is compatibel with the cached data.