Skip to content

Commit 8dca03d

Browse files
authored
Merge pull request #75 from GrantBirki/flat-yaml
Flat YAML
2 parents 38952da + 2a6b408 commit 8dca03d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/acceptance-test.yml

+9
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,12 @@ jobs:
5757
lowercase_alphanumeric=^[a-z0-9]*$
5858
files: |
5959
__tests__/fixtures/json/custom_ajv_regexp_format/valid.json
60+
61+
- name: acceptance test - flat yaml
62+
uses: ./
63+
id: json-yaml-validate-flat-yaml-test
64+
with:
65+
comment: "true"
66+
yaml_schema: ./__tests__/fixtures/schemas/flat.yaml
67+
files: |
68+
__tests__/acceptance/flat_yaml/flat.yaml
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: Test
2+
author: Me
3+
category: YAML

__tests__/fixtures/schemas/flat.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name:
2+
type: string
3+
description: The name
4+
required: true
5+
author:
6+
type: string
7+
description: The author
8+
required: true
9+
category:
10+
type: string
11+
description: The category
12+
required: true

0 commit comments

Comments
 (0)