fix #4793 Updating schema definition so it doesnot show "repository" key required in "galaxy.yml" #4798
+23
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix : Updated the galaxy.json schema used by ansible-lint to remove the repository key from the list of required properties for galaxy.yml. According to the [Collection Galaxy metadata structure], the repository key is optional and should not trigger a schema violation.
Fixes issue #4793 - ansible-lint raised a schema[galaxy] error with very high severity if repository was missing from galaxy.yml, even though it is not required by the official schema. This caused confusion for users and blocked further linting, especially in VS Code with the Ansible extension.
##Changes
->ansible-lint will no longer fail with a schema error when repository is missing from galaxy.yml.
->Developers will receive a warning (if the new rule is enabled) rather than a blocking error.
->Improves compatibility with the official Ansible Galaxy metadata specification and the VS Code Ansible extension.