title: yaml Error while parsing. Expected <block end>, but found <scalar>
body: <p>I'm trying to test a swagger api with got-swag (npm package)</p>
  
  <p>When I try to validate the json response with a json schema I get a parseError when the seperate yaml files get combined into one yaml and json file. The origin is the -validate() line. The validate() originates from the got-swag package but it fails in it's underlying <strong>jsonschema.validate( data, schema );</strong> dependency</p>
  
  <pre><code> x-tests:
          - description: Should return array of ferries
            steps:
              - get('/api/get/link/ferries')
              - equal(res.statusCode, 200)
              - ok(res.json.length &gt; 0)
              - validate(res.json,  $ref: '#/definitions/ferry')
  </code></pre>
  
  <p>This is the resulting error:</p>
  
  <pre><code>           throw new exports.ParserError('while parsing a block mapping', this.marks.slice(-1)[0], "expected &lt;block end&gt;, but found " + token.id, token.start_mark);
          ^
  while parsing a block mapping
    on line 29, column 15
  expected &lt;block end&gt;, but found &lt;scalar&gt;
    on line 29, column 76
      at ParserError.YAMLError [as constructor] (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\errors.js:70:46)
      at ParserError.MarkedYAMLError [as constructor] (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\errors.js:90:45)
      at new ParserError (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\parser.js:17:48)
      at Loader.__dirname.Parser.Parser.parse_block_mapping_key (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\parser.js:433:15)
      at Loader.__dirname.Parser.Parser.check_event (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\parser.js:61:48)
      at Loader.__dirname.Composer.Composer.compose_mapping_node (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\composer.js:248:20)
      at Loader.__dirname.Composer.Composer.compose_node (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\composer.js:160:21)
      at Loader.__dirname.Composer.Composer.compose_sequence_node (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\composer.js:216:30)
      at Loader.__dirname.Composer.Composer.compose_node (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\composer.js:158:21)
      at Loader.__dirname.Composer.Composer.compose_mapping_node (C:\Users\dvbets\Documents\Workspace\Repos\node_modules\yaml-js\lib\composer.js:250:27)
  </code></pre>