-
Notifications
You must be signed in to change notification settings - Fork 458
Support additionalType #2279
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
Support additionalType #2279
Conversation
|
Thanks for the PR! This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged. |
src/build/patches.ts
Outdated
| function handleAdditionalTypes(node: Node) { | ||
| const additionalTypes = []; | ||
| for (const child of node.children) { | ||
| if (child.name === "additionalType") { |
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.
This is assuming to repeat like
additionalType foo
additionalType bar
right? But maybe just additionalTypes foo bar, because it's always just a simple string?
|
I have updated it @saschanaz, and added a sample for multiple additionaltypes |
|
I have fixed the broken code @saschanaz |
|
LGTM, thanks! |
|
Merging because @saschanaz is a code-owner of all the changes - thanks! |
No description provided.