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: {}
|
||||
30
tests/valid/v1-extensions.yml
Normal file
30
tests/valid/v1-extensions.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
recorded_at: 2026-11-28
|
||||
source_context: &context
|
||||
synthetic: true
|
||||
stations: [North, South]
|
||||
calibration: 0.0000000000000000000000000000001
|
||||
context_copy: *context
|
||||
collections:
|
||||
measurements:
|
||||
metadata: {note: An extension on a collection}
|
||||
entries:
|
||||
- id: wind
|
||||
name: Wind speed
|
||||
category: speed
|
||||
aliases: null
|
||||
plural: null
|
||||
unit: metre per second
|
||||
- id: gust
|
||||
name: Gust speed
|
||||
category: speed
|
||||
aliases: []
|
||||
description: ""
|
||||
- id: direction
|
||||
name: Wind direction
|
||||
category: bearing
|
||||
another_collection:
|
||||
entries:
|
||||
- id: wind
|
||||
name: Wind
|
||||
category: phenomenon
|
||||
2
tests/valid/v1-minimal-campaign.yml
Normal file
2
tests/valid/v1-minimal-campaign.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
schema_version: maximumdirect.campaign.v1
|
||||
id: sample
|
||||
2
tests/valid/v1-minimal-glossary.yml
Normal file
2
tests/valid/v1-minimal-glossary.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections: {}
|
||||
2
tests/valid/v1-minimal-party.yml
Normal file
2
tests/valid/v1-minimal-party.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
schema_version: maximumdirect.party.v1
|
||||
characters: {}
|
||||
14
tests/valid/v1-party-extensions.yml
Normal file
14
tests/valid/v1-party-extensions.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
schema_version: maximumdirect.party.v1
|
||||
description: A party without universal class requirements.
|
||||
characters:
|
||||
"character:one":
|
||||
player: {name: Rowan, pronouns: they/them}
|
||||
character:
|
||||
name: Mira
|
||||
aliases: null
|
||||
classes: []
|
||||
species: human
|
||||
role: scout
|
||||
"character:two":
|
||||
player: {name: Rowan}
|
||||
character: {name: Mira, aliases: []}
|
||||
Reference in New Issue
Block a user