Keep shared YAML support within native parser capabilities
This commit is contained in:
@@ -131,12 +131,18 @@ bundled exact-version schemas registered under their canonical IDs. Bundle the
|
||||
adopted schema directories and semantics without importing the schema
|
||||
repository's internal Go validation harness or creating a runtime catalog client.
|
||||
|
||||
Match the selected upstream validation profile for JSON/YAML decoding, including
|
||||
one completed document, duplicate-key rejection, supported YAML aliases and
|
||||
scalar handling, and preservation of numeric precision. In particular, extension
|
||||
values must not be silently altered by a lossy generic decode. Reuse existing
|
||||
libraries where they provide the required behavior; add only the adapter logic
|
||||
needed to bridge the adopted profile.
|
||||
Adopt the shared domain structure and semantics without promising the full
|
||||
upstream YAML decoding profile. ConfigKit accepts a narrower YAML value language;
|
||||
do not widen it or build a compatibility bridge for shared-schema YAML forms.
|
||||
Use existing parser capabilities and straightforward decoding for supported
|
||||
documents. Operators can use supported plain YAML or equivalent JSON rather than
|
||||
requiring Notarius-specific scalar, alias, tag, or arbitrary-precision machinery.
|
||||
Document the serialization boundary separately from shared-schema validity.
|
||||
|
||||
Reference documents remain completed domain data, not another application
|
||||
configuration load. Avoid routing them through configuration imports/directives
|
||||
merely to reuse a parser. Preserve supported decoded values and extensions when
|
||||
forwarding; do not claim lossless handling of every upstream YAML value.
|
||||
|
||||
Validate the complete shared document before projecting selected collections.
|
||||
Enforce the upstream semantic rule that glossary entry IDs are unique within
|
||||
@@ -321,10 +327,10 @@ The implemented feature should demonstrate:
|
||||
3. One shared roster supplies character aliases and player relationships to the
|
||||
maintained pipeline without duplicate player/party-vocabulary authoring.
|
||||
Optional attributes and duplicate display labels follow the shared contract.
|
||||
4. Equivalent YAML and JSON inputs produce equivalent task material. Focused
|
||||
decoding tests cover duplicate keys, unsupported YAML forms, precision-sensitive
|
||||
extension values, and representative allowed aliases/scalars from the upstream
|
||||
profile. Structural and semantic tests cover omission/null/empty behavior,
|
||||
4. Equivalent supported YAML and JSON inputs produce equivalent task material.
|
||||
Focused tests cover ordinary supported values and native decoding failures,
|
||||
without requiring full upstream YAML-profile parity or a custom bridge.
|
||||
Structural and semantic tests cover omission/null/empty behavior,
|
||||
extensions, per-collection ID uniqueness, and incompatible markers.
|
||||
5. Recognition tests preserve embedded vocabulary, canonical display, same-spell
|
||||
alias augmentation, and deterministic collision handling. General glossary
|
||||
|
||||
Reference in New Issue
Block a user