Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .schema.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
type: object
required:
- domain
- override_description
- description
- categories
- languages
- region
properties:
domain:
type: string
override_description:
type: boolean
description:
type: string
override_language:
type: boolean
categories:
type: array
items:
Expand Down
2 changes: 0 additions & 2 deletions test_data/erroneous_files/all_valid_values_json.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
// this file should not pass schema validation with wrong file type
domain: cat.land
override_description: no
description: a server where cats can share cute pictures of their humans
override_language: no
categories:
- food
- furry
Expand Down
4 changes: 1 addition & 3 deletions test_data/erroneous_files/all_wrong_values.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# this file should cause schema validator errors on all 8 fields
# this file should cause schema validator errors on all 6 fields
domain:
override_description: nein
description:
override_language: nein
categories:
- cats
languages:
Expand Down
4 changes: 1 addition & 3 deletions test_data/erroneous_files/valid_with_extra_values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# this file should pass schema validation on all fields
# this file should fail schema validation with extra fields
domain: cat.land
override_description: no
description: a server where cats can share cute pictures of their humans
override_language: no
categories:
- food
- furry
Expand Down
4 changes: 1 addition & 3 deletions test_data/erroneous_files/valid_with_missing_fields.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# this file should pass schema validation on all fields
# this file should fail schema validation with missing field
domain: cat.land
override_description: no
description: a server where cats can share cute pictures of their humans
override_language: no
categories:
- food
- furry
Expand Down
2 changes: 0 additions & 2 deletions test_data/to_not_pass_linting.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
# this file should cause schema validator errors on all 8 fields
domain: cat.land
override_description: true
description: a server where cats can share cute pictures of their humans
override_language: true
categories:

Check failure on line 5 in test_data/to_not_pass_linting.yml

View workflow job for this annotation

GitHub Actions / Lint-yaml

5:13 syntax error: mapping values are not allowed here (syntax)
- food
- furry
- religion
Expand Down
2 changes: 0 additions & 2 deletions test_data/valid_files/all_valid_values_yaml.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# this file should pass schema validation on all fields
domain: cat.land
override_description: false
description: a server where cats can share cute pictures of their humans
override_language: false
categories:
- food
- furry
Expand Down
2 changes: 0 additions & 2 deletions test_data/valid_files/all_valid_values_yml.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# this file should pass schema validation on all fields
domain: cat.land
override_description: false
description: a server where cats can share cute pictures of their humans
override_language: false
categories:
- food
- furry
Expand Down
7 changes: 1 addition & 6 deletions test_data/valid_files/minimum_valid_entries.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
# this file should pass schema validation on all fields
domain: test.domain
override_description: false
description: test test
override_language:
categories:
- games
languages: []
region: ''
legal_body_type:
region: europe
Loading