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] +