From 115e3fd70246375f01766bdb2d9a3f152f42364c Mon Sep 17 00:00:00 2001 From: aireilly Date: Fri, 28 Apr 2023 16:42:26 +0100 Subject: [PATCH 1/2] adding test case that doesn't fit --- .../AsciiDoc/ClosedAttributeBlocks/testvalid.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.vale/fixtures/AsciiDoc/ClosedAttributeBlocks/testvalid.adoc b/.vale/fixtures/AsciiDoc/ClosedAttributeBlocks/testvalid.adoc index f70c7f6..a39e3d2 100644 --- a/.vale/fixtures/AsciiDoc/ClosedAttributeBlocks/testvalid.adoc +++ b/.vale/fixtures/AsciiDoc/ClosedAttributeBlocks/testvalid.adoc @@ -19,3 +19,17 @@ $ oc adm must-gather [must-gather ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-2bd8x created [must-gather ] OUT pod for plug-in image quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:125f183d13601537ff15b3239df95d47f0a604da2847b561151fedd699f5e3a5 created ---- + +//vale-fixture +.Example API response +[source,json] +---- +[ + { + "id": "ca11ab76-86f9-428c-8d3a-666c24e34d32", + "endpointUri": "http://localhost:9089/api/ocloudNotifications/v1/dummy", + "uriLocation": "http://localhost:8089/api/ocloudNotifications/v1/subscriptions/ca11ab76-86f9-428c-8d3a-666c24e34d32", + "resource": "/cluster/node/openshift-worker-0.openshift.example.com/redfish/event" + } +] +---- From c4431c08ef48c7bf43971a33e929df872f27d87e Mon Sep 17 00:00:00 2001 From: aireilly Date: Fri, 28 Apr 2023 16:53:19 +0100 Subject: [PATCH 2/2] final-edge-case --- .vale/styles/AsciiDoc/ClosedAttributeBlocks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vale/styles/AsciiDoc/ClosedAttributeBlocks.yml b/.vale/styles/AsciiDoc/ClosedAttributeBlocks.yml index efb65ea..471662b 100644 --- a/.vale/styles/AsciiDoc/ClosedAttributeBlocks.yml +++ b/.vale/styles/AsciiDoc/ClosedAttributeBlocks.yml @@ -4,4 +4,4 @@ scope: raw level: error message: "Attribute block is not closed." raw: - - '(?