Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax entity requirements #45

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ A set of key-value pairs that describe the state of an entity. In JSON Siren, t

####`entities`

A collection of related sub-entities. If a sub-entity contains an `href` value, it should be treated as an embedded link. Clients may choose to optimistically load embedded links. If no `href` value exists, the sub-entity is an embedded entity representation that contains all the characteristics of a typical entity. One difference is that a sub-entity MUST contain a `rel` attribute to describe its relationship to the parent entity.
A collection of related sub-entities. If a sub-entity contains an `href` value, it should be treated as an embedded link. Clients may choose to optimistically load embedded links. If no `href` value exists, the sub-entity is an embedded entity representation that contains all the characteristics of a typical entity.

In JSON Siren, this is represented as an array. Optional.

Expand Down Expand Up @@ -131,7 +131,7 @@ Defines media type of the linked sub-entity, per [Web Linking (RFC5899)](http://

####Embedded Representation

Embedded sub-entity representations retain all the characteristics of a standard entity, but MUST also contain a `rel` attribute describing the relationship of the sub-entity to its parent.
Embedded sub-entity representations retain all the characteristics of a standard entity.

###Classes vs. Relationships

Expand Down