From b21ff12406857805b43d56605b93e6692c41f592 Mon Sep 17 00:00:00 2001 From: Gustavo Bazan Date: Tue, 28 Jan 2025 13:50:16 +0000 Subject: [PATCH 1/2] task: [spectral] make description check deep prop --- tools/spectral/.spectral.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/spectral/.spectral.yaml b/tools/spectral/.spectral.yaml index cd60bca978..a618b03a15 100644 --- a/tools/spectral/.spectral.yaml +++ b/tools/spectral/.spectral.yaml @@ -13,7 +13,7 @@ aliases: - "#OperationObject" - "#PathItem.parameters[?(@ && @.in)]" - "#OperationObject.parameters[?(@ && @.in)]" - - "$.components.schemas[*].properties[?(@ && @.type)]" + - "$.components.schemas[*]..properties[?(@ && @.type)]" rules: xgen-schema-properties-camel-case: From 753d463c57016f330ed3bfc143322da4a4cb6ac3 Mon Sep 17 00:00:00 2001 From: Gustavo Bazan Date: Tue, 28 Jan 2025 14:08:24 +0000 Subject: [PATCH 2/2] Update .spectral.yaml --- tools/spectral/.spectral.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/spectral/.spectral.yaml b/tools/spectral/.spectral.yaml index a618b03a15..d680328161 100644 --- a/tools/spectral/.spectral.yaml +++ b/tools/spectral/.spectral.yaml @@ -248,6 +248,10 @@ overrides: - "*.yaml#/components/schemas/tokenFiltertrim" rules: xgen-schema-name-pascal-case: "off" + - files: + - "*.yaml#/components/schemas/charFiltermapping" + rules: + xgen-description: "off" - files: - "*.yaml#/components/schemas/IndexOptions" - "*.yaml#/components/schemas/NetworkPermissionEntryStatus"