Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<PackageId>Microsoft.OpenApi.OData</PackageId>
<SignAssembly>true</SignAssembly>
<Version>1.6.0-preview.4</Version>
<Version>1.6.0-preview.5</Version>
<Description>This package contains the codes you need to convert OData CSDL to Open API Document of Model.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageTags>Microsoft OpenApi OData EDM</PackageTags>
Expand All @@ -25,6 +25,7 @@
- Updates the format of the request body schema of a collection of complex property #423
- Adds a delete operation and a required @id query parameter to collection-valued navigation property paths with $ref #453
- Fixes inconsistency of nullability of schemas of properties that are a collection of structured types #467
- Generates $expand query parameter for operations whose return type is a collection #481
</PackageReleaseNotes>
<AssemblyName>Microsoft.OpenApi.OData.Reader</AssemblyName>
<AssemblyOriginatorKeyFile>..\..\tool\Microsoft.OpenApi.OData.snk</AssemblyOriginatorKeyFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ private void AppendSystemQueryOptions(IEdmFunction function, OpenApiOperation op
{
operation.Parameters.AppendParameter(orderbyParameter);
}

// $expand
if (Context.CreateExpand(function, entityType) is OpenApiParameter expandParameter)
{
operation.Parameters.AppendParameter(expandParameter);
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7082,6 +7082,21 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"Friends",
"BestFriend",
"Trips"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -7630,6 +7645,19 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"PlanItems"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -11102,6 +11130,21 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"Friends",
"BestFriend",
"Trips"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -12042,6 +12085,21 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"Friends",
"BestFriend",
"Trips"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -15441,6 +15499,19 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"PlanItems"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -16042,6 +16113,21 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"Friends",
"BestFriend",
"Trips"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -23441,6 +23527,21 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"Friends",
"BestFriend",
"Trips"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -24063,6 +24164,19 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"PlanItems"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -28079,6 +28193,21 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"Friends",
"BestFriend",
"Trips"
],
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -29139,6 +29268,21 @@
],
"type": "string"
}
},
{
"in": "query",
"name": "$expand",
"description": "Expand related entities",
"type": "array",
"items": {
"enum": [
"*",
"Friends",
"BestFriend",
"Trips"
],
"type": "string"
}
}
],
"responses": {
Expand Down
Loading