Establish shared domain schemas and offline validation
This commit is contained in:
5
tests/invalid/decode-complex-key.yml
Normal file
5
tests/invalid/decode-complex-key.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
schema_version: maximumdirect.campaign.v1
|
||||
id: example
|
||||
context:
|
||||
? [one, two]
|
||||
: value
|
||||
4
tests/invalid/decode-cycle.yml
Normal file
4
tests/invalid/decode-cycle.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
schema_version: maximumdirect.campaign.v1
|
||||
id: example
|
||||
context: &context
|
||||
recurse: *context
|
||||
4
tests/invalid/decode-duplicate-key.yml
Normal file
4
tests/invalid/decode-duplicate-key.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
schema_version: maximumdirect.party.v1
|
||||
characters:
|
||||
mira: {character: {name: Mira}}
|
||||
mira: {character: {name: Another Mira}}
|
||||
3
tests/invalid/decode-nonfinite.yml
Normal file
3
tests/invalid/decode-nonfinite.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
schema_version: maximumdirect.campaign.v1
|
||||
id: example
|
||||
measurement: .inf
|
||||
6
tests/invalid/semantic-duplicate-id.yml
Normal file
6
tests/invalid/semantic-duplicate-id.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
weather:
|
||||
entries:
|
||||
- {id: wind, name: Wind, category: speed}
|
||||
- {id: wind, name: Another wind, category: speed}
|
||||
5
tests/invalid/structure-invalid-known-field.yml
Normal file
5
tests/invalid/structure-invalid-known-field.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
weather:
|
||||
unit: metric
|
||||
entries: [{id: wind, name: Wind, category: speed, aliases: 2}]
|
||||
2
tests/invalid/structure-legacy-envelope.yml
Normal file
2
tests/invalid/structure-legacy-envelope.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
weather:
|
||||
entries: [{id: wind, name: Wind, category: speed}]
|
||||
4
tests/invalid/structure-missing-name.yml
Normal file
4
tests/invalid/structure-missing-name.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
weather:
|
||||
entries: [{id: wind, category: measurement, unit: metre per second}]
|
||||
4
tests/invalid/structure-null-description.yml
Normal file
4
tests/invalid/structure-null-description.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
weather:
|
||||
entries: [{id: wind, name: Wind, category: speed, description: null}]
|
||||
2
tests/invalid/structure-wrong-marker.yml
Normal file
2
tests/invalid/structure-wrong-marker.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
schema_version: maximumdirect.glossary.v2
|
||||
collections: {}
|
||||
Reference in New Issue
Block a user