Skip to content

Map (Lane 4): Schema & Contract Fidelity #88

Backlog
4 of 4 issues completed
Backlog

Description

@clockblocker

Destination

Ensure C++20 structs emit clean Draft 2020-12 JSON Schemas and handle real-world enum, nullability, and recursive AST contracts on showcase/all-lanes without manual post-processors or duplicate DTOs.

Phase 1 Status: COMPLETE (fork/showcase/all-lanes d0f1fca1 · 0/4 open child tickets). Phase 2 active across Waves 3, 4, and 6 (PLANNED_PR_WAVES.md).

Notes

  • Parent map: Map: Close reflect-cpp Adoption Gaps into showcase/all-lanes.
  • Phase 2 mapping (PLANNED_PR_WAVES.md):
    • Live upstream: #802 (fork #76, enum-string-view, closes #565).
    • Wave 3 (JSON Schema Core): #14 (json-schema-variant-one-of, refs #375), #78 folding/stacking #21 (json-schema-default-if-missing, closes #396), #79 (default-if-null, refs #796).
    • Wave 4 (Tri-State Wire Semantics): Extract nullable-tristate from #102 (rfl::Nullable<T>, rfl::TriState<T>, rfl::AddNullFields).
    • Wave 6 (Schema Polish): Extract schema-ext-and-bounds from #100 + #109 + #115 (closes #683) and enum-wire-names from #101 (closes #731).
    • Parked in #116 (Easy & Landable): #77 (fix-rename-skip-duplicate), #56 (case-insensitive-enums), #103 (recursive TaggedUnion $defs cycle-breaking, b73c8aea).
  • Phase 1 Showcase Evidence (archived research artifacts):

Decisions so far

Not yet specified

  • Phase 2 extractions & blocker resolution: Unify is_safe_default_constructible.hpp across #78 + #79, resolve #79 NamedTupleParser.hpp UB blocker, rebase #14, and carve nullable-tristate, schema-ext-and-bounds, and enum-wire-names onto origin/main.
  • Edge cases in Fog: OpenLiteral and untagged rfl::Variant field-subset ordering (// ORDER MATTERS) remain out of active queue unless hit by an owned project.

Out of scope

  • Non-JSON-Schema IDL emitters unless driven by a concrete Showcase Migration.
  • General-purpose theorem-proving or arbitrary cross-field validation DSLs beyond what real Showcase Migrations require.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:map

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions