@rheactorjs/models

A collection of models

Usage no npm install needed!

<script type="module">
  import rheactorjsModels from 'https://cdn.skypack.dev/@rheactorjs/models';
</script>

README

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.