-
Notifications
You must be signed in to change notification settings - Fork 16
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: support property access via reference object #59
feat: support property access via reference object #59
Conversation
5d02c48
to
4f9914c
Compare
name: convertContext.escapeReferenceDeclarationText(maybeResolvedName), | ||
}); | ||
} | ||
const schema = DotProp.get(context.rootSchema, pathArray.join(".")) as any; |
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.
TODO
if (depth === 2) { | ||
return factory.TypeReferenceNode.create({ name: converterContext.escapeReferenceDeclarationText(maybeResolvedName) }); | ||
} else { | ||
const resolveSchema = DotProp.get(context.rootSchema, pathArray.join(".")) as any; |
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.
TODO
/** | ||
* @example components.a.b.c.dの場合 ["a", "b", "c", "d"].length = 4 | ||
**/ | ||
depth: number; |
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.
TODO: refactoring target
Summary
Support property access via reference object
from: https://twitter.com/excelspeedup/status/1437002951264915456
Test Plan
add test code