From cbb744615e3bd4fa6cd93fdd948b73fb05ec84ba Mon Sep 17 00:00:00 2001 From: Cal <35017184+CallumWalley@users.noreply.github.com> Date: Tue, 14 May 2024 13:12:29 +1200 Subject: [PATCH] Update schema.yml (#6) * Update schema.yml * Update schema.yml * Update schema.yml * Update schema.yml * Update schema.yml * Update validate_yaml.yml * Update schema.yml * Testnest * uncomment shcema * Update schema.yml * Update schema.yml * Update schema.yml * Update schema.yml * Recomment shcmea * Update te_reo.yaml --- .github/workflows/validate_yaml.yml | 3 ++- schemas/schema.yml | 32 ++++++++++++++--------------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/validate_yaml.yml b/.github/workflows/validate_yaml.yml index 108d28c..e874d60 100644 --- a/.github/workflows/validate_yaml.yml +++ b/.github/workflows/validate_yaml.yml @@ -17,5 +17,6 @@ jobs: uses: GrantBirki/json-yaml-validate@v2.7.1 with: comment: True - yaml_schema: schemas/schema.yml + # yaml_schema: schemas/schema.yml # Does not support root level checking. + # TODO: nest dictionaries one deep. base_dir: dic diff --git a/schemas/schema.yml b/schemas/schema.yml index 1dc7fd9..67df01e 100644 --- a/schemas/schema.yml +++ b/schemas/schema.yml @@ -1,17 +1,17 @@ --- -- long: - type: string - short: - type: string - checkcase: - type: boolean - plural: - type: boolean - possessive: - type: boolean - outputs: - - type: string - enum: [spellcheck, snippet, glossary] - - - +words: + match: /^[\w\-]+$/, + long: + type: string + short: + type: string + checkcase: + type: boolean + plural: + type: boolean + possessive: + type: boolean + outputs: + - type: string + enum: [spellcheck, snippet, glossary] +