Skip to content
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

allof, oneof, discriminator support #139

Merged
merged 10 commits into from
May 24, 2024
Merged

Conversation

KlimenkoAV
Copy link
Contributor

No description provided.

/**
* @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

@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.

3 participants