You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rfl::json::to_schema<T, rfl::DefaultIfMissing>: emit "type" before "default" on Boolean and normalize annotation order #115
Root cause on fork/all-planned-prs (7a8ab835) in include/rfl/json/schema/Type.hpp:28-31:
struct Boolean declares rfl::Flatten<Annotations> annotations{};beforeLiteral<"boolean"> type{};, whereas Integer, Number, String, Null, Object, TypedArray, FixedSizeTypedArray, StringMap, Tuple, StringEnum, and Regex all declare type first.
Additionally, Annotations (which carries defaultValue → "default") appears before items / additionalProperties / oneOf / anyOf / allOf on composite schema types in include/rfl/json/schema/Type.hpp:53-155.
Acceptance Criteria
Move Literal<"boolean"> type{}; ahead of rfl::Flatten<Annotations> annotations{}; in rfl::json::schema::Type::Boolean so booleans consistently emit "type" before "default" / "description", matching all other primitive schema types.
Audit and normalize "default" / Annotations ordering relative to items, additionalProperties, and oneOf where appropriate (without breaking existing schema tests; update tests/json/test_json_schema_default_if_missing.cpp:170 and add regression assertions checking "type" precedes "default" on booleans).
Landed on showcase/all-lanes at b73c8aea (dual-Judge approved by claude-opus-5-5 high + gemini-4-neon high; 467/467 targets 0 warnings, 1,129/1,129 CTests).
Reordered rfl::json::schema::Type::Boolean so Literal<"boolean"> type precedes rfl::Flatten<Annotations> annotations, matching every other primitive subtype.
Audited all 21 json::schema::Type subtypes, updated test_json_schema_default_if_missing.cpp, and added test_issue_115_boolean_type_before_default.
Activity
feat(schema,enum): implement Batch 2B (#115, #100, #101, #103)
clockblocker commentedon Nov 27, 2026
Landed on
showcase/all-lanesatb73c8aea(dual-Judge approved byclaude-opus-5-5high +gemini-4-neonhigh; 467/467 targets 0 warnings, 1,129/1,129 CTests).rfl::json::schema::Type::BooleansoLiteral<"boolean"> typeprecedesrfl::Flatten<Annotations> annotations, matching every other primitive subtype.json::schema::Typesubtypes, updatedtest_json_schema_default_if_missing.cpp, and addedtest_issue_115_boolean_type_before_default.