generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
bugSomething isn't workingSomething isn't workingpending-triageHasn't been triaged yetHasn't been triaged yet
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Bug Category
Other
Describe the bug
Entities.parse(Path)
fails with
Exception in thread "main" com.fasterxml.jackson.databind.JsonMappingException: com.cedarpolicy.model.exception.InvalidValueDeserializationException: "type" or "id" not found
If the entities json specification uses "__entity: { "type" : "...", "id": "..." }" syntax to specify parent entities. If the same syntax is used within attr no such error is generated.
Using cedar-java 4.8.0
Expected behavior
Entities object allocated
Reproduction steps
Entities.parse(Path)
Code Snippet
import com.cedarpolicy.model.entity.Entities;
import java.nio.file.Path;
public class App {
public static void main(String[] args) throws Exception {
Entities.parse(Path.of("entities.json"));
}
}Log output
// Put your output below this line
Additional configuration
No response
Operating System
Linux
Additional information and screenshots
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpending-triageHasn't been triaged yetHasn't been triaged yet