Code Monkey home page Code Monkey logo

Comments (4)

handrews avatar handrews commented on May 22, 2024

Having thought about this proposal for a while, I find it more confusing than it's worth. There's the child-propagation concern, and the complications mentioned there. It also is saving just a few keystrokes per URI at the cost of substantial readability. Having to mentally assemble the URI across several fields (which may be many lines apart) is much harder to work with than just seeing the URI template at the point where you need it.

I'm solidly (although not vehemently) against this proposal.

from json-schema-spec.

handrews avatar handrews commented on May 22, 2024

Did this get put in the latest draft as base without actually finishing the discussion or resolving the issue?

from json-schema-spec.

awwright avatar awwright commented on May 22, 2024

Uh... yeah, yeah it did. I must have missed this issue.

The functionality was already in JSON Hyper-schema as a special case for links where rel="self", which is somewhat unprecedented, since links shouldn't be changing the document's behavior just by existing. I can't really take the behavior out (it's used by JSON Schema itself), so it was just spun into a keyword.

We'll see if it works out or not.

from json-schema-spec.

handrews avatar handrews commented on May 22, 2024

LOL that's a good reason to have added it!

FWIW I'm not as opposed to it as I was in the earlier comment. There's a bit of weirdness (to me) with all of these resolution scope-changing keywords, but I think some early bad experiences with id has led me to be too harsh on the concept.

from json-schema-spec.

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.