Skip to content

Document the JSON format used for DRT #125

@khieta

Description

@khieta

Category

DRT infrastructure

Describe the feature you'd like to request

PR #124 makes it somewhat easier to customize DRT by abstracting away the details of our Dafny/Java implementation. This allows users to (with minimal work) provide their own implementation of Cedar to differentially test against the cedar-policy crate. However, users must figure out for themselves how to translate cedar-policy types like Request and Entities into appropriate format for their implementation.

In practice, we expect users to use JSON to pass data between Rust and their custom implementation, which is what we currently do for our Dafny/Java implementation. In particular, we rely on the generated serde_json JSON representation of the cedar-policy types. We should document this somewhere, and perhaps change the interfaces introduced in PR #124 to use JSON inputs/outputs rather than structured cedar-policy types.

Describe alternatives you've considered

No response

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationfeature-requestRequest for a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions