Skip to content

Commit

Permalink
add flat yaml test
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 22, 2024
1 parent 38952da commit d93c274
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,11 @@ jobs:
__tests__/**/test1.yml
__tests__/**/test*.json
- name: acceptance test - custom formats
- name: acceptance test - flat yaml
uses: ./
id: json-yaml-validate-custom-formats-test
id: json-yaml-validate-flat-yaml-test
with:
comment: "true"
json_schema: ./__tests__/fixtures/schemas/schema_with_custom_ajv_regexp_format.json
ajv_custom_regexp_formats: |
lowercase_char=^[a-z]*$
lowercase_alphanumeric=^[a-z0-9]*$
yaml_schema: ./__tests__/fixtures/schemas/flat.yaml
files: |
__tests__/fixtures/json/custom_ajv_regexp_format/valid.json
__tests__/acceptance/flat_yaml/flat.yaml
3 changes: 3 additions & 0 deletions __tests__/acceptance/flat_yaml/flat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Test
author: Me
category: YAML
4 changes: 4 additions & 0 deletions __tests__/fixtures/schemas/flat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name:
type: string
description: Name of the yaml value
required: true

0 comments on commit d93c274

Please sign in to comment.