Skip to content

Commit

Permalink
Latest samples.json + required sample.zig changes
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmstill committed Mar 28, 2024
1 parent 460f826 commit a5a06c0
Show file tree
Hide file tree
Showing 2 changed files with 617 additions and 592 deletions.
7 changes: 4 additions & 3 deletions biscuit-samples/src/sample.zig
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ pub const Result = union(enum) {
const World = struct {
facts: []FactOrigin,
rules: []RuleOrigin,
checks: [][]const u8,
checks: []CheckOrigin,
policies: [][]const u8,
};

const FactOrigin = struct { []const u8, []?usize };
const RuleOrigin = struct { []const u8, usize };
const FactOrigin = struct { facts: [][]const u8, origin: []?usize };
const RuleOrigin = struct { origin: usize, rules: [][]const u8 };
const CheckOrigin = struct { origin: usize, checks: [][]const u8 };
Loading

0 comments on commit a5a06c0

Please sign in to comment.