Related: #2990, #2993
When $ref is combined with schema-affecting keywords (e.g., const) and the merge correctly occurs in parse_item, the merged result is not passed back to parse_object_fields. This causes it to generate the pre-merged type instead of the merged type.
This was noted by @juliusliu02 in #2993 (comment) as a separate aspect of the original issue #2990.
#2993 addresses part 1 (preventing unnecessary merges for non-schema-affecting extras), but this issue tracks part 2 (ensuring merged results propagate correctly when merging is intended).
Related: #2990, #2993
When
$refis combined with schema-affecting keywords (e.g.,const) and the merge correctly occurs inparse_item, the merged result is not passed back toparse_object_fields. This causes it to generate the pre-merged type instead of the merged type.This was noted by @juliusliu02 in #2993 (comment) as a separate aspect of the original issue #2990.
#2993 addresses part 1 (preventing unnecessary merges for non-schema-affecting extras), but this issue tracks part 2 (ensuring merged results propagate correctly when merging is intended).