-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(gitlabci): Use schema for dep extraction #33586
base: main
Are you sure you want to change the base?
Conversation
const docs = parseYaml<GitlabPipeline>(content, { | ||
uniqueKeys: false, | ||
}); | ||
const docs = parseYaml(content, { uniqueKeys: false }); |
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.
why not using yaml schema helper?
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.
Because it doesn't use uniqueKeys
option
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.
ok, we probably should create a new helper for it? 🙃
why not passing the schema as customSchema
via options?
const docs = parseYaml<GitlabPipeline>(content, { | ||
uniqueKeys: false, | ||
}); | ||
const docs = parseYaml(content, { uniqueKeys: false }); |
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.
ok, we probably should create a new helper for it? 🙃
why not passing the schema as customSchema
via options?
const docs = parseYaml(content, { uniqueKeys: false }); | ||
for (const dep of GitlabDocumentArray.parse(docs)) { |
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.
pass schema via customSchema
option to parseYaml
Changes
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: