redhat-developer / redhat-developer/yaml-language-server
`Matches a schema that is not allowed` error, but the ansible-playbook script runs fine.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Hi,
My first attempt to use ansible has been thwarted by red squiggles.
I have installed this language server and am using the Helix editor that works with it out-of-the-box. My first script works running ansible-playbook , but I am told Matches a schema that is not allowed, and I have looked at the Helix logs and it seems to be using the correct https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json
- name: Bootstrap development environment
hosts: localhost
tasks:
- name: Install Stow on redhat clones
become: true
dnf:
name:
- stow
state: present


What exactly does this message mean? It doesn't really make sense, does it mean ansible.json is not allowed? What can I do about this problem? I would like it to help me with ansible.
Also I have no formatting available, it is turned of by default? That would be a strange choice? Cheers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the sample YAML in Helix and inspecting the language-server logs and the referenced ansible.json schema. Determine why the valid ansible-playbook input is rejected and whether the formatting concern is a separate issue; done means the sample produces no incorrect schema diagnostic and the intended formatting behavior is documented or corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- yaml
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100