Comments (5)
It looks like at some point the rel was changed from "curie" to "curies" as http://stateless.co/hal_specification.html still mentions the former.
The fact its not an array should not actually matter, as single element/array should be handled automatically by any client processing library - as for any link entry. I do recall this being discussed on the list over weather it should ALWAYS be an array or not, but I don't think there was any conclusion.
I'll update the rel type tho when I get a chance and push a new release out.
from halbuilder-core.
My comment about the array vs not array is supported by this
but I agree this doesn't really constitute a conclusion. The curie -> curies change happened with rev 4 of the spec, with the diff seen here: http://tools.ietf.org/rfcdiff?url2=draft-kelly-json-hal-04.txt
Thanks for taking a look at this!
from halbuilder-core.
True, however my comments in thread still stand in my reasoning - The
"JSON Way" of doing arbitrary object/array replacement is stupid.
From a consumption point of view, you have NO IDEA if that link is
truely single, or multiple, and in a dynamic language/data type there's
no real way to codify that. Only via assumptions. If currying is a
special case, it should really be _curries and separate from links) IMHO.
This is just one of the odd differences between the XML and JSON specs.
There's also another thread calling for curries to be totally removed
from the spec, which personally - I'm down for.
asheldon wrote:
My comment about the array vs not array is supported by this
but I agree this doesn't really constitute a conclusion. The curie ->
curies change happened with rev 4 of the spec, with the diff seen
here: http://tools.ietf.org/rfcdiff?url2=draft-kelly-json-hal-04.txtThanks for taking a look at this!
—
Reply to this email directly or view it on GitHub
#9 (comment).
from halbuilder-core.
FWIW, http://stateless.co/hal_specification.html now uses curies
and all the examples show the value as an array.
from halbuilder-core.
Curies is used in the current code actually...closing.
from halbuilder-core.
Related Issues (20)
- Introduction of a getBean method for the Representation Interface. HOT 4
- halbuilder-core: wrong withLink argument order in README example
- IllegalArgumentException thrown if MediaType contains Relative Quality Factors HOT 3
- Adding object through 'withBean' method doesn't ignore @JsonIgnore annotation HOT 4
- PersistentRepresentation#withRepresentation mutates original representation
- Dalvikvm: Could not find method java.beans.Introspector.getBeanInfo HOT 5
- Please update maven HOT 4
- Add support for HalForms
- Move current develop branch to halbuilder5 repo, reset branch HOT 1
- Collections are not added to _embedded. HOT 3
- The insertion order of embedded resources is not preserved. HOT 2
- Representations with empty value produce an NPE.
- MessageBodyWriter and MessageBodyReader for HalBuilder 5.0 HOT 8
- Add static factory method for JsonRepresentationReader mentioned in documentation. HOT 3
- Empty array if no embedded representation is added HOT 3
- withLink() always creates an array? HOT 6
- Derive4J annotations scoped "provided" produce compiler warnings in Gradle project HOT 4
- ResourceRepresentation::withLinks does not update rels correctly. HOT 1
- NPE while printing empty representation HOT 2
- add support to add title property to link items HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from halbuilder-core.