-
Notifications
You must be signed in to change notification settings - Fork 754
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
Allow specifying metadata in bicep in addition to metadata.json #10860
Conversation
src/Bicep.RegistryModuleTool.IntegrationTests/Commands/ValidateCommandTests.cs
Outdated
Show resolved
Hide resolved
Can we call |
…eCommandTests.cs Co-authored-by: Shenglong Li <[email protected]>
Co-authored-by: Shenglong Li <[email protected]>
Co-authored-by: Shenglong Li <[email protected]>
Co-authored-by: Shenglong Li <[email protected]>
Co-authored-by: Shenglong Li <[email protected]>
We can. I'm not positive if it makes sense. With these changes, metadata.json is still required, so there's nothing they can do. Do you think I should go ahead and make metadata.json optional now? It's more work, including we'd need a new bicep file validator, so I hesitated. I think when metadata.json is optional it makes sense to have the obsolete warning. I was thinking we'd make metadata.json optional in 0.19.0 and then in 0.20.0 or later we could remove support for it. Thoughts? Edit: How about what I did in 28ab9b0? That way we only muddy the water if we have added the metadata in bicep for them and they're confused why they're having to update both. |
I think adding the deprecation warning later when metadata.json is optional does make more sense, and the changes in [28ab9b0] is good enough for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is meant to ease the conversion away from metadata.json and to using metadata in the bicep file. It changes:
Right now the metadata.json file is still required, the metadata in bicep is optional (but if present, will get picked up by Bicep for hover).
Technically this checkin isn't necessary for v0.18 because the current brm ignores metadata in the bicep file, but it does help reduce confusion if the bicep metadata and metadata.json are inconsistent.
Microsoft Reviewers: Open in CodeFlow