<p>PyCharm has a built-in editor for YAML files. I can create any file that ends with &quot;.yml&quot; and it will do syntax check on it. Today I wanted to add a file called <code>cluster.yml</code> to my repository. PyCharm thought that it is kubernetes config file and marked all of its content as big fatal error. :-)</p>
<p><a href="https://i.stack.imgur.com/vfIHi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vfIHi.png" alt="enter image description here" /></a></p>
<p>Even code completion works on it, showing various kubernetes options:</p>
<p><a href="https://i.stack.imgur.com/B9Gqm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B9Gqm.png" alt="enter image description here" /></a></p>
<p>In this particular project, the file has nothing to do with kubernetes. It just happens to have that name <code>cluster.yml</code>.</p>
<p>I have tried to &quot;override file type&quot; in PyCharm, but it already has &quot;YAML&quot; file type. I want this extra schema check gone, and get back my simple and effective plain YAML editor and syntax check.</p>
<p>But how?</p>

nagylzs
<p>I ran into this in the context of an Ansible project, and was similarly annoyed. Solution was:
to uncheck <code>File-&gt;Settings-&gt;Editor-&gt;Inspections-&gt;YAML-&gt;Validation by JSON Schema</code>.</p>
