Skip to content

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

Merged
merged 10 commits into from
May 24, 2024
Merged

Conversation

KlimenkoAV
Copy link
Contributor

No description provided.

Verified

This commit was signed with the committer’s verified signature.
wilfwilson Wilf Wilson
@KlimenkoAV KlimenkoAV force-pushed the anklimenko/oneof-support branch from 124184f to b892859 Compare March 25, 2024 12:51

Verified

This commit was signed with the committer’s verified signature.
wilfwilson Wilf Wilson
@KlimenkoAV KlimenkoAV force-pushed the anklimenko/oneof-support branch from b892859 to a4ad113 Compare March 25, 2024 12:52
/**
* @description Gets refs from allof schema only one level down
*/
private getRefsByAllOf(
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -203,6 +206,12 @@ export class OpenAPIService {
const expanded = this.expandRefs(refsFromObject, refKeys);
collectedRefs.push(...expanded);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combine with isObject case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@KlimenkoAV KlimenkoAV force-pushed the anklimenko/oneof-support branch from 19e9dd2 to e8a14d9 Compare March 25, 2024 14:26
@KlimenkoAV KlimenkoAV force-pushed the anklimenko/oneof-support branch from 516b116 to 5e8a28d Compare April 24, 2024 09:31
@akhromets
Copy link
Contributor

Please increase the package version.

@@ -0,0 +1,5 @@
import { IExtendedInterfaceModel, InterfaceModel } from '../../models/InterfaceModel';

Copy link
Contributor

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 ?

@KlimenkoAV KlimenkoAV merged commit 217cd9e into master May 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants