-
Notifications
You must be signed in to change notification settings - Fork 62
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
Generate odata.nextLink
and odata.deltaLink
properties on delta functions response schemas
#290
Merged
millicentachieng
merged 10 commits into
master
from
fix/ma/delta-functions-next-delta-links-properties
Oct 6, 2022
Merged
Generate odata.nextLink
and odata.deltaLink
properties on delta functions response schemas
#290
millicentachieng
merged 10 commits into
master
from
fix/ma/delta-functions-next-delta-links-properties
Oct 6, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
millicentachieng
force-pushed
the
fix/ma/delta-functions-next-delta-links-properties
branch
from
October 3, 2022 07:28
8ac1544
to
f06367a
Compare
millicentachieng
requested review from
xuzhg,
irvinesunday,
darrelmiller,
peombwa,
zengin and
baywet
as code owners
October 3, 2022 08:37
irvinesunday
reviewed
Oct 3, 2022
src/Microsoft.OpenApi.OData.Reader/Edm/EdmOperationExtensions.cs
Outdated
Show resolved
Hide resolved
irvinesunday
reviewed
Oct 3, 2022
src/Microsoft.OpenApi.OData.Reader/Edm/EdmOperationExtensions.cs
Outdated
Show resolved
Hide resolved
irvinesunday
reviewed
Oct 3, 2022
src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiResponseGenerator.cs
Outdated
Show resolved
Hide resolved
irvinesunday
reviewed
Oct 3, 2022
src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiResponseGenerator.cs
Outdated
Show resolved
Hide resolved
irvinesunday
reviewed
Oct 3, 2022
irvinesunday
reviewed
Oct 3, 2022
baywet
requested changes
Oct 3, 2022
src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiResponseGenerator.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.OpenApi.OData.Reader/Operation/EdmActionOperationHandler.cs
Show resolved
Hide resolved
src/Microsoft.OpenApi.OData.Reader/Operation/EdmFunctionOperationHandler.cs
Show resolved
Hide resolved
test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiResponseGeneratorTests.cs
Show resolved
Hide resolved
baywet
reviewed
Oct 3, 2022
src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj
Show resolved
Hide resolved
millicentachieng
force-pushed
the
fix/ma/delta-functions-next-delta-links-properties
branch
from
October 4, 2022 11:31
6a08475
to
736a33b
Compare
…ons when EnableCount=true
baywet
requested changes
Oct 5, 2022
millicentachieng
force-pushed
the
fix/ma/delta-functions-next-delta-links-properties
branch
from
October 5, 2022 16:53
73b5044
to
e26a0d7
Compare
baywet
requested changes
Oct 6, 2022
src/Microsoft.OpenApi.OData.Reader/Edm/EdmOperationExtensions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSchemaGenerator.cs
Outdated
Show resolved
Hide resolved
baywet
approved these changes
Oct 6, 2022
baywet
requested changes
Oct 6, 2022
src/Microsoft.OpenApi.OData.Reader/Edm/EdmOperationExtensions.cs
Outdated
Show resolved
Hide resolved
baywet
approved these changes
Oct 6, 2022
millicentachieng
deleted the
fix/ma/delta-functions-next-delta-links-properties
branch
October 6, 2022 13:43
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #285
This PR
RefBaseCollectionPaginationCountResponse
toEnableODataAnnotationReferencesForResponses
to make it apply for all the control information in the response i.e.@odata.nextLink
,@odata.deltaLink
and@odata.count
in our case@odata.nextLink
for all actions and functions that return a collection ifEnablePagination = true
BaseDeltaFunctionResponse
if there's at least one delta function in the model andEnableODataAnnotationReferencesForResponses = true
BaseDeltaFunctionResponse
schema for delta functions ifEnableODataAnnotationReferencesForResponses = true
@odata.nextLink
and@odata.deltaLink
properties to responses of delta functions ifEnableODataAnnotationReferencesForResponses = false
EnableODataAnnotationReferencesForResponses = false
EnableODataAnnotationReferencesForResponses = true