Code Monkey home page Code Monkey logo

Comments (6)

shaobo-he-aws avatar shaobo-he-aws commented on September 15, 2024 1

@muse254 Is it possible for you to depend on cedar_policy_validator? It should contain APIs you need to implement such function. In the meanwhile, we will try to make the required APIs to cedar_policy.

from cedar.

aaronjeline avatar aaronjeline commented on September 15, 2024 1

That would be great, thank you!

from cedar.

shaobo-he-aws avatar shaobo-he-aws commented on September 15, 2024

Thank you for your interest in Cedar. We have a JSON format for entities, whose documentation can be found here. Once you specify entities in this format, you should be able to call Entities::from_json_str to get the Rust object.

Note that you may need to translate the JSON objects into Cedar's entity JSON format. We're exploring a solution (issue, rfc) that allows you to annotate the Rust type so that objects of a type can be automatically translated to Entities.

from cedar.

muse254 avatar muse254 commented on September 15, 2024

Could there be a possibility of making the proposed solution also have inclusion for dynamic generation of Entities for crate consumers who only get to know the schema and object they are parsing at runtime? @shaobo-he-aws
Or maybe a separate followup implementation

from cedar.

cdisselkoen avatar cdisselkoen commented on September 15, 2024

(note that cedar_policy_validator is not stable and does not come with semver guarantees)

from cedar.

muse254 avatar muse254 commented on September 15, 2024

Is it ok for me to start work on this under an experimental feature?

from cedar.

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.