Skip to content

Re-use Cedar JSON FFI where possible #181

@khieta

Description

@khieta

Category

Internal refactors/changes

Describe the feature you'd like to request

We made a variety of improvements to the Cedar JSON FFI (cedar-policy::ffi) as part of version 4.0. For example: we added APIs to check whether a policy/schema successfully parse (cedar-policy/cedar#1079), to apply the formatter to policies (cedar-policy/cedar#1087), and to convert between the JSON and Cedar syntaxes for policies and schemas (cedar-policy/cedar#1087).

The Java-Rust interface in CedarJavaFFI should reuse these FFI APIs as much as possible. For example: #172 and #180 could probably be revised to use the corresponding cedar-policy::ffi functions instead.

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

    internal-improvementRefactoring, performance improvement, or other non-breaking change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions