Skip to content

Fix map entry field features and generate missing feature locations#684

Merged
doriable merged 6 commits intomainfrom
generate-missing-locs
Mar 19, 2026
Merged

Fix map entry field features and generate missing feature locations#684
doriable merged 6 commits intomainfrom
generate-missing-locs

Conversation

@doriable
Copy link
Member

@doriable doriable commented Mar 18, 2026

This PR fixes some more conformance issues:

  • When a valid feature option is set for map fields, the map entry fields
    also inherit these options
  • Generating source locations for the field default JSON name options

@doriable doriable requested a review from mcy March 18, 2026 00:25

// featureOptionsForMapEntryField is a helper function for setting valid feature options
// from the map field to the given map entry field.
func featureOptionsForMapEntryField(file *File, r *report.Report, mapEntryField, mapField Member) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't feel right to me. I would have thought you wanted to set up the parent of the FeatureSet of the map entry type to be the FeatureSet of the map field. Then everything should happen automatically, I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in person -- we're going to push this logic to fdp generation.

@doriable doriable merged commit 6258087 into main Mar 19, 2026
6 checks passed
@doriable doriable deleted the generate-missing-locs branch March 19, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants