Skip to content

Commit

Permalink
test(reference): load YAML using JSON Schema
Browse files Browse the repository at this point in the history
This is specific to Swagger Client YAML parser
plugin.

Refs #2289
  • Loading branch information
char0n committed Dec 12, 2022
1 parent 0249a16 commit bf10895
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const YamlParser: stampit.Stamp<IParser> = stampit(Parser, {
const source = file.toString();

try {
const element = from(YAML.load(source));
const element = from(YAML.load(source, { schema: JSON_SCHEMA }));
const parseResultElement = new ParseResultElement();

element.classes.push('result');
Expand Down

0 comments on commit bf10895

Please sign in to comment.