Git Product home page Git Product logo

Comments (5)

gregsdennis avatar gregsdennis commented on May 23, 2024

URI templates are required by this specification. The previous .Net implementation is .Net Framework and hasn't been ported yet (not even into .Net 5). I looked at just pulling the class into the library, but it appears that it's not just a simple copy/paste of the class definition.

I'll either need to wait for MS to port it, or see if I can find one. I'm not sure I understand enough about the domain to implement it myself.

from json-everything.

gregsdennis avatar gregsdennis commented on May 23, 2024

Looks like someone did the direct port! Well, several people did, but this is the one I'm using.

from json-everything.

gregsdennis avatar gregsdennis commented on May 23, 2024

From the spec, section 6.4.1 on template pointers

The value of the "templatePointers" link description property MUST be an object. Each property value in the object MUST be a valid JSON Pointer [RFC6901], or a valid Relative JSON Pointer...

I can't evaluate relative pointers because of a limitation in the JSON element structure. I won't be able to support evaluating schemas with these for now.

from json-everything.

gregsdennis avatar gregsdennis commented on May 23, 2024

It sounds like this is more for code gen than validation, like generation of API clients. Visual Studio can do this for an API that publishes a swagger file. You point the tool at the API, and it generates all of the models and a client.

Is there any validation expected here? Even the spec doesn't really talk about "an instance is valid against this keyword if x criteria are met." I'm struggling to figure out what a validator would do with this.

I'm leaning on the Slack community to answer this.

from json-everything.

gregsdennis avatar gregsdennis commented on May 23, 2024

Confirmed in the JSON Schema Slack that this isn't a validation vocabulary. It's for tooling support.

I'm not sure that's something I want to support. At least not right now. Closing this.

from json-everything.

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.