From 5ae13d2acc46e26f37e15a4197bf4fa8003f0edf Mon Sep 17 00:00:00 2001 From: Dennis Ahrens Date: Fri, 29 Nov 2024 09:25:32 +0100 Subject: [PATCH] fix: provide metadata field on Condition --- .../io/quarkiverse/openfga/client/model/Condition.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/model/src/main/java/io/quarkiverse/openfga/client/model/Condition.java b/model/src/main/java/io/quarkiverse/openfga/client/model/Condition.java index 8f5e30a..ce1abbb 100644 --- a/model/src/main/java/io/quarkiverse/openfga/client/model/Condition.java +++ b/model/src/main/java/io/quarkiverse/openfga/client/model/Condition.java @@ -36,11 +36,13 @@ public List getGenericTypes() { private final String name; private final String expression; private final Map parameters; + private final Map metadata; - public Condition(String name, String expression, Map parameters) { + public Condition(String name, String expression, Map parameters, Map metadata) { this.name = name; this.expression = expression; this.parameters = parameters; + this.metadata = metadata; } public String getName() { @@ -55,6 +57,10 @@ public Map getParameters() { return parameters; } + public Map getMetadata() { + return metadata; + } + @Override public boolean equals(Object o) { if (this == o)