title: How can I validate YAML with JSON schema
body: <p>Let's say I want to validate YAML and I convert it to JSON to use the JSON schema.</p>
  
  <p>For example I've YAML like following:</p>
  
  <pre><code>    dep:
       name: ui
       path: ui
       requires:
         name: users
         properties:
         name: users
       name: ui2
       path: be
       requires:
         name: users1
  </code></pre>
  
  <p>What I want to validate is that the name of dep is unique which can be achieved like following</p>
  
  <pre><code>{
     "$schema":"http://json-schema.org/draft-04/schema#",
     "type":"object",
     "properties":{
        "name":{
           "type":"array",
           "items":{
              "type":"string",
              "pattern":"/^[A-Za-z0-9_-.]+$/"
           },
           "uniqueItems":true
        }
     },
     "required":[
        "name"
     ]
  }
  </code></pre>
  
  <p>But what about the <strong>line number</strong> for example if user put <code>ui</code> instead <code>ui2</code> in the <strong>second instance</strong> of dep, how it should give you the line num?</p>