Git Product home page Git Product logo

Comments (2)

geraintluff avatar geraintluff commented on July 16, 2024

Not in v4, I'm afraid.

It's expected to be in v5, as per [this proposal](https://github.com/json-schema/json-schema/wiki/Extended-templating-syntax-(v5-proposal\)). It would be something like:

{
    "links": [
        "href": {
            "template": "/example{?e,b}",
            "vars": {
                "b": "3/b"
            }
        }
    ]
}

In that example, "e" is treated as a plain variable name, but the value for "b" is resolved using a Relative JSON Pointer that says "go up three levels, then into the b property".

The moment a proposal for v5 is released, I'll put this functionality into Jsonary.

from jsonary.

pmogren avatar pmogren commented on July 16, 2024

Thanks for the response.

From: Geraint [mailto:[email protected]]
Sent: Tuesday, January 14, 2014 11:09 AM
To: jsonary-js/jsonary
Cc: Paul Mogren
Subject: Re: [jsonary] How to access parent data (#130)

Not in v4.

It's expected to be in v5, as per this proposalhttps://github.com/json-schema/json-schema/wiki/Extended-templating-syntax-(v5-proposal). It would be something like:

{

"links": [

    "href": {

        "template": "/example{?e,b}",

        "vars": {

            "b": "3/b"

        }

    }

]

}

In that example, "e" is treated as a plain variable name, but the value for "b" is resolved using a Relative JSON Pointer that says "go up three levels, then into the b property".

The moment a proposal for v5 is released, I'll put this functionality into Jsonary.


Reply to this email directly or view it on GitHubhttps://github.com//issues/130#issuecomment-32278182.

from jsonary.

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.