-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ajv validation errors markers #182
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const value = editorValue; | ||
const parsedYaml = Array.from(new Parser().parse(value)); | ||
const doc = parsedYaml.find((token) => token.type === "document") as Document; | ||
const docElements: IItem[] = doc?.value?.items ?? []; | ||
return docElements; | ||
}; | ||
|
||
export function parseYaml(yamlItems: IItem[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseYaml function is more efficient and accessible function to make the big yaml Document smaller, through the cleanups, will adjust other parsing functions with this one. @bripkens
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.