From 3bb097c42ec5a286006805ca20c1075c10280bfd Mon Sep 17 00:00:00 2001 From: Lee Myring <145468344+lee-bezero@users.noreply.github.com> Date: Wed, 31 Jul 2024 08:06:43 +0100 Subject: [PATCH 1/2] docs: update README with correct syntax --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d1175e..a9e3c12 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,9 @@ data "cedar_policyset" "example" { text = "resource.is_public" } unless { - text = "resource.owner == User::"alice" + text = "resource.owner == User::\"alice\"" } + } } ``` From 81e44d42851bcb460781f2db685f5ab1c2be4b74 Mon Sep 17 00:00:00 2001 From: Lee Myring <145468344+lee-bezero@users.noreply.github.com> Date: Wed, 31 Jul 2024 08:09:15 +0100 Subject: [PATCH 2/2] fix: missing double quote escaping --- docs/index.md | 2 +- templates/index.md.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 095853c..fe81f75 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,7 +25,7 @@ data "cedar_policyset" "example" { text = "resource.is_public" } unless { - text = "resource.owner == User::"alice" + text = "resource.owner == User::\"alice\"" } } } diff --git a/templates/index.md.tmpl b/templates/index.md.tmpl index 095853c..fe81f75 100644 --- a/templates/index.md.tmpl +++ b/templates/index.md.tmpl @@ -25,7 +25,7 @@ data "cedar_policyset" "example" { text = "resource.is_public" } unless { - text = "resource.owner == User::"alice" + text = "resource.owner == User::\"alice\"" } } }