-
Notifications
You must be signed in to change notification settings - Fork 10
allof, oneof, discriminator support #139
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
Conversation
124184f
to
b892859
Compare
b892859
to
a4ad113
Compare
src/swagger/OpenAPIService.ts
Outdated
/** | ||
* @description Gets refs from allof schema only one level down | ||
*/ | ||
private getRefsByAllOf( |
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.
looks like totally copy paste from getRefsByObject. Can you combine methods
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.
done
src/swagger/OpenAPIService.ts
Outdated
@@ -203,6 +206,12 @@ export class OpenAPIService { | |||
const expanded = this.expandRefs(refsFromObject, refKeys); | |||
collectedRefs.push(...expanded); | |||
} | |||
|
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.
combine with isObject case
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.
done
19e9dd2
to
e8a14d9
Compare
516b116
to
5e8a28d
Compare
Please increase the package version. |
…gengen into anklimenko/oneof-support
src/generators/utils/modelGuard.ts
Outdated
@@ -0,0 +1,5 @@ | |||
import { IExtendedInterfaceModel, InterfaceModel } from '../../models/InterfaceModel'; | |||
|
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 is it not in TypeGuard service ?
No description provided.