8000 Remove modules from schemas by ssbarnea · Pull Request #118 · ansible/schemas · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Remove modules from schemas #118

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Remove modules from schemas #118

merged 1 commit into from
Dec 21, 2021

Conversation

ssbarnea
Copy link
Member
@ssbarnea ssbarnea commented Dec 21, 2021

We will no longer check module names and arguments as part of playbook and tasks schemas as these features are greatly dependent of local configuration and they do not scale well.

To be clear there is no JSON validator that can cope with a full schema that checks modules, even if we would generate one.

We will recommend users to use one of the editors that can make use of https://github.com/ansible/ansible-language-server

These schemas ar still valid but you should be aware of their limitations.

@ssbarnea ssbarnea added the enhancement New feature or request label Dec 21, 2021
Copy link
Collaborator
@ziegenberg ziegenberg left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -20,6 +20,7 @@ commands =
# we use npm/mocha to perform testing instead of pytest, mainly because
# ajv-cli does not allow passing options we need.
# {envpython} -m pytest
npm run test
Copy link
Member

Choose a reason for hiding this comment

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

Why is this included with the schema removal?

Copy link
Member Author

Choose a reason for hiding this comment

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

Safety. I wanted to see that testing passes. Less than ideal but with current state of affairs...

@ssbarnea ssbarnea merged commit 9ec8002 into ansible:main Dec 21, 2021
@ssbarnea ssbarnea deleted the fix/01 branch December 21, 2021 15:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0