Git Product home page Git Product logo

Comments (5)

talios avatar talios commented on August 23, 2024

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.

asheldon avatar asheldon commented on August 23, 2024

My comment about the array vs not array is supported by this

https://groups.google.com/forum/?fromgroups=#!searchin/hal-discuss/curies$20array/hal-discuss/v-Uwcbspzl0/V6tOtAm8MisJ

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.

talios avatar talios commented on August 23, 2024

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

https://groups.google.com/forum/?fromgroups=#!searchin/hal-discuss/curies$20array/hal-discuss/v-Uwcbspzl0/V6tOtAm8MisJ

https://groups.google.com/forum/?fromgroups=#!searchin/hal-discuss/curies%2420array/hal-discuss/v-Uwcbspzl0/V6tOtAm8MisJ

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!


Reply to this email directly or view it on GitHub
#9 (comment).

from halbuilder-core.

pimlottc avatar pimlottc commented on August 23, 2024

FWIW, http://stateless.co/hal_specification.html now uses curies and all the examples show the value as an array.

from halbuilder-core.

talios avatar talios commented on August 23, 2024

Curies is used in the current code actually...closing.

from halbuilder-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.