jeremyfa / yaml.js

Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ParseException when using remote ref

Hienphamthe opened this issue · comments

My yml hierarchy is below. In paths, I ref schema of responses to component defined in openapi_components.yml
$ref: "openapi_components.yml#/schemas/xxxxxx"
And this is where yaml.js returns error.
throw new ParseException('Unable to parse.', this.getRealCurrentLineNb() + 1, this.currentLine);
Anyone has any idea how to fix? Thanks.

openapi.yml 
openapi_paths.yml
openapi_components.yml