Skip to content

Commit

Permalink
Merge pull request #75 from GrantBirki/flat-yaml
Browse files Browse the repository at this point in the history
Flat YAML
  • Loading branch information
GrantBirki authored Aug 24, 2024
2 parents 38952da + 2a6b408 commit 8dca03d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,12 @@ jobs:
lowercase_alphanumeric=^[a-z0-9]*$
files: |
__tests__/fixtures/json/custom_ajv_regexp_format/valid.json
- name: acceptance test - flat yaml
uses: ./
id: json-yaml-validate-flat-yaml-test
with:
comment: "true"
yaml_schema: ./__tests__/fixtures/schemas/flat.yaml
files: |
__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
12 changes: 12 additions & 0 deletions __tests__/fixtures/schemas/flat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name:
type: string
description: The name
required: true
author:
type: string
description: The author
required: true
category:
type: string
description: The category
required: true

0 comments on commit 8dca03d

Please sign in to comment.