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

makes collection responses reusable #157

Merged
merged 16 commits into from
Jan 5, 2022
Merged

Conversation

baywet
Copy link
Member

@baywet baywet commented Dec 16, 2021

fixes #125

@baywet baywet self-assigned this Dec 16, 2021
@baywet baywet added this to the 1.0.10 milestone Dec 16, 2021
@baywet baywet marked this pull request as ready for review December 17, 2021 18:32
@baywet baywet enabled auto-merge December 17, 2021 18:32
var entityType = structuredType as IEdmEntityType;
return CreateCollectionResponse(entityType?.FullName() ?? structuredType.FullTypeName());
}
private static OpenApiResponse CreateCollectionResponse(string typeName)
Copy link
Contributor

Choose a reason for hiding this comment

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

It could be remove this private static method and put the codes directly into the above?

Copy link
Member Author

Choose a reason for hiding this comment

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

No because this method is called twice

@xuzhg
Copy link
Contributor

xuzhg commented Dec 17, 2021

Others look good to me.

Signed-off-by: Vincent Biret <[email protected]>
@baywet baywet requested a review from xuzhg January 5, 2022 16:08
@xuzhg
Copy link
Contributor

xuzhg commented Jan 5, 2022

:shipit: Looks good to me.

@baywet baywet merged commit 98a6b29 into master Jan 5, 2022
@baywet baywet deleted the feature/collection-responses branch January 5, 2022 23:00
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.

optimization - use components for collection responses
2 participants