Skip to content

config: allow 'extra' in root of single-project config files #5030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sjbarag
Copy link
Contributor

@sjbarag sjbarag commented Jul 7, 2025

The 'extra' property was previously only declared for the projects in a multi-project config file. Since unknown fields are considered an error when parsing single-project config files, this made it impossible to include arbitrary metadata via a package.json config or a relay.config.json file. Allow 'extra' at the root of a single-project config file to better-match the structure of projects in a multi-project config.

fixes #5029

@captbaritone
Copy link
Contributor

Looks reasonable to me. Let me know when this PR is ready to review. Thanks for working on this!

The 'extra' property was previously only declared for the projects in a
multi-project config file. Since unknown fields are considered an error
when parsing single-project config files, this made it impossible to
include arbitrary metadata via a package.json config or a
relay.config.json file. Allow 'extra' at the root of a single-project
config file to better-match the structure of projects in a multi-project
config.

fixes facebook#5029
@sjbarag sjbarag force-pushed the allow-extra-in-single-project-configs branch from 86fc7d7 to 2dd36ca Compare July 7, 2025 22:08
@sjbarag sjbarag marked this pull request as ready for review July 7, 2025 22:08
@sjbarag
Copy link
Contributor Author

sjbarag commented Jul 7, 2025

@captbaritone ready for review! Sorry, forgot to drive self.extra down into the just-in-time multi-project config :)

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this in D77896280.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"extra" not allowed at root of single-project config file
3 participants