Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
172de9b
Audit SchemaExtensions shared directives for v3 migration
ramsessanchez Oct 22, 2026
b665f43
Regenerate SchemaExtensions v1.0 Kiota client and cmdlets
ramsessanchez Oct 22, 2026
91d6fd0
Regenerate SchemaExtensions beta Kiota client and cmdlets
ramsessanchez Oct 22, 2026
42785e6
Merge current powershell-v3 for SchemaExtensions PR revalidation
ramsessanchez Oct 30, 2026
eb820b2
Revalidate SchemaExtensions tests against current generator API
ramsessanchez Oct 30, 2026
42c2c32
Regenerate SchemaExtensions v1.0 after natural-ID framework merge
ramsessanchez Oct 30, 2026
4debd14
Regenerate SchemaExtensions beta after natural-ID framework merge
ramsessanchez Oct 30, 2026
b4c9678
Merge normal Authentication target for SchemaExtensions revalidation
ramsessanchez Nov 3, 2026
50e0897
Pin SchemaExtensions emitted adapter profiles after Authentication sync
ramsessanchez Nov 3, 2026
0f5c131
Regenerate SchemaExtensions v1.0 with packaged Authentication 2.41.2
ramsessanchez Nov 3, 2026
86a1236
Regenerate SchemaExtensions beta with packaged Authentication 2.41.2
ramsessanchez Nov 3, 2026
7347ce4
Merge final PATCH contract for SchemaExtensions revalidation
ramsessanchez Nov 6, 2026
3288f99
Pin SchemaExtensions one-operation PATCH semantics
ramsessanchez Nov 6, 2026
74c362b
Regenerate SchemaExtensions v1.0 for single-operation PATCH
ramsessanchez Nov 6, 2026
c287e13
Regenerate SchemaExtensions beta for single-operation PATCH
ramsessanchez Nov 6, 2026
c2db822
Merge branch 'powershell-v3' into ramsessanchez-schemaextensions-v3-m…
ramsessanchez Nov 12, 2026
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
52 changes: 52 additions & 0 deletions src/SchemaExtensions/SchemaExtensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,55 @@ require:
``` yaml
# Directives go here!
```

### Shared directive migration audit

Only this shared module file is in scope. Its directive block is empty: there
are no cmdlet suppressions or renames to migrate, and no parameter aliases,
parameter transforms, or schema/response directives to defer. The
`require` above remains unchanged; directives in `src/readme.graph.md` and
profile-specific `readme.md` files are explicitly excluded from this audit.
No claim is made that those excluded directives have been migrated.

`wrapper/SchemaExtensions_cmdletConfigurations.cs` remains empty intentionally.
`wrapper/SchemaExtensions_directiveMigrationMap.json` records no mappings, since
there are no shared selectors to resolve. Structural naming already supplies
the SchemaExtension CRUD and count names; no synthetic overrides are needed.

Both currently compatible profiles are required; none is excluded:

| Profile | Compatible spec | Git blob | Existing output directory |
| --- | --- | --- | --- |
| v1.0 | `openApiDocs_KiotaCompat/v1.0/SchemaExtensions.yml` | `121c9a107ef31504c720af9f088c2b7bc685a707` | `wrapper/v1.0` |
| beta | `openApiDocs_KiotaCompat/beta/SchemaExtensions.yml` | `a0b0746ade2a173cb4e3aecdd2b299d96b63b39b` | `wrapper/Beta` |

Each spec contains the following six operations. These are unaffected-route
evidence, not directive mappings:

| Method | Path | Operation ID |
| --- | --- | --- |
| GET | `/schemaExtensions` | `schemaExtension_ListSchemaExtension` |
| POST | `/schemaExtensions` | `schemaExtension_CreateSchemaExtension` |
| GET | `/schemaExtensions/{schemaExtension-id}` | `schemaExtension_GetSchemaExtension` |
| PATCH | `/schemaExtensions/{schemaExtension-id}` | `schemaExtension_UpdateSchemaExtension` |
| DELETE | `/schemaExtensions/{schemaExtension-id}` | `schemaExtension_DeleteSchemaExtension` |
| GET | `/schemaExtensions/$count` | `schemaExtension_GetCount` |

These are the current compatible IDs after operation-ID alignment in the target
branch. The original audit used `schemaExtensions.schemaExtension.<operation>`
for CRUD and `schemaExtensions.GetCount-e324` for count; the HTTP methods and paths
above are unchanged. No shared source selector existed before or after alignment.

`SchemaExtensionsDirectiveMigrationTests` reads both compatible specs and pins
these operation identities and all seven emitted cmdlets, including the
collection/item workers and count route. Both profiles run with derived data
enabled and disabled, passing the profile separately to the generation, naming,
and suppression APIs. Exact method/path metadata is checked on each emitted
worker. This preserves the existing surface without adding suppression or rename
rules for nonexistent shared directives.

The PATCH worker executes only its own mutation. A 204 response succeeds without
an output object or automatic GET; a model response is returned as received.
GET selection remains an independent caller operation. These specs declare no
required query inputs, and PATCH does not acquire its sibling GET's OData inputs
or a readback switch. Module tests pin this one-operation contract.
6 changes: 3 additions & 3 deletions src/SchemaExtensions/wrapper/Beta/Client/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "6688BE1604A6F75B7118F9C6707753EB3F1E51DA9F3ED695A3B9D770A342150C0BC299318C562EDEEE5A502D5C58EF314221C9BD93CBABCCAC4938D87DE98496",
"descriptionLocation": "../../../../../openApiDocs_KiotaCompat/Beta/SchemaExtensions.yml",
"descriptionHash": "54A4DEEBD5A0254F3CB5325F77EEAC87445C4EB35910FA48D33280C48F7D40F10EAF716C91DE0AED7C34191E58D8CA8E05126146F14A808080B3DA18149A0236",
"descriptionLocation": "../../../../../openApiDocs_KiotaCompat/beta/SchemaExtensions.yml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.34.1",
"kiotaVersion": "1.36.1",
"clientClassName": "ApiClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "Microsoft.Graph.PowerShell.SchemaExtensions.Client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class GetMgSchemaExtensionCommand : GraphClientCmdlet




[Parameter(Mandatory = false)]
[Alias("Select")]
public string[]? Property { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class GetMgSchemaExtensionCountCommand : GraphClientCmdlet
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

int? result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GetMgSchemaExtension_GetCommand : GraphClientCmdlet
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtension? result;
Expand All @@ -50,6 +50,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class GetMgSchemaExtension_ListCommand : GraphClientCmdlet
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtensionCollectionResponse? result;
Expand Down Expand Up @@ -93,6 +93,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected override void ProcessRecord()
body.Properties = Properties!.ToList();


var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtension? result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected override void ProcessRecord()
if (!ShouldProcess(SchemaExtensionId, "Remove"))
return;

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

// DeleteAsync returns a plain Task: a standard delete response has no body.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected override void ProcessRecord()
body.Properties = Properties!.ToList();


var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtension? result;
Expand All @@ -81,20 +81,6 @@ protected override void ProcessRecord()
return;
}


if (result is null)
{
WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource.");
try
{
result = client.SchemaExtensions[SchemaExtensionId].GetAsync().GetAwaiter().GetResult();
}
catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException)
{
ThrowGraphRequestFailed(ex, SchemaExtensionId);
return;
}
}
if (result is not null)
WriteObject(result);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"descriptionLocation": "../../../../../openApiDocs_KiotaCompat/Beta/SchemaExtensions.yml"
"descriptionLocation": "../../../../../openApiDocs_KiotaCompat/beta/SchemaExtensions.yml"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,16 @@
<ProjectReference Include="..\..\..\GraphWrapperRuntime\Runtime\Microsoft.Graph.Wrapper.Runtime.csproj" />
</ItemGroup>

<!-- The module folder may carry ONLY the wrapper assemblies plus the kiota dependencies the
installed Microsoft.Graph.Authentication module does not ship (Std.UriTemplate,
Microsoft.Kiota.Serialization.Multipart). Every other dependency must resolve from that
module's isolated load context: a copy here loads a second type identity into the default
<!-- The module folder carries ONLY the wrapper assemblies. Authentication ships the complete
Kiota dependency closure and bridges its contracts to generated cmdlets. Every dependency
must resolve from that module's isolated load context: a copy here loads a second type identity into the default
context, and the first request through the shared session pipeline dies casting between
the two (proven live: ObservabilityOptions, kiota middleware vs wrapper adapter).
Removal is by package identity, not filename, so the kept assemblies' versions stay
derived from the restore graph instead of being pinned here. -->
Removal is by package identity, not filename. -->
<Target Name="PruneModuleBin" AfterTargets="ResolveReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)"
Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != '' And '%(ReferenceCopyLocalPaths.NuGetPackageId)' != 'Std.UriTemplate' And '%(ReferenceCopyLocalPaths.NuGetPackageId)' != 'Microsoft.Kiota.Serialization.Multipart'" />
Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != ''" />
</ItemGroup>
</Target>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mappings": []
}
4 changes: 2 additions & 2 deletions src/SchemaExtensions/wrapper/v1.0/Client/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "E887BB529A35737571FA513D17B77DD9A580771A674B78281AE24633BBD8EFA2E7EFADD76ABEF51DCF9C0FF8F631DA6CBAC766BB0D6CA439433BE37D876730FD",
"descriptionHash": "6EC1F2620C1790B254BE0A6093243AA2D5B694960CDD72C79DD523A9A2916ADEFC7A6A010CFCB3AB4BF4C7A843A380D5FD582C7F93697D4018D9BFE500FF0FD2",
"descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/SchemaExtensions.yml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.34.1",
"kiotaVersion": "1.36.1",
"clientClassName": "ApiClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "Microsoft.Graph.PowerShell.SchemaExtensions.Client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class GetMgSchemaExtensionCommand : GraphClientCmdlet




[Parameter(Mandatory = false)]
[Alias("Select")]
public string[]? Property { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class GetMgSchemaExtensionCountCommand : GraphClientCmdlet
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("v1.0");
var client = new ApiClient(requestAdapter);

int? result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GetMgSchemaExtension_GetCommand : GraphClientCmdlet
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("v1.0");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtension? result;
Expand All @@ -50,6 +50,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class GetMgSchemaExtension_ListCommand : GraphClientCmdlet
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("v1.0");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtensionCollectionResponse? result;
Expand Down Expand Up @@ -93,6 +93,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected override void ProcessRecord()
body.Properties = Properties!.ToList();


var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("v1.0");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtension? result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected override void ProcessRecord()
if (!ShouldProcess(SchemaExtensionId, "Remove"))
return;

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("v1.0");
var client = new ApiClient(requestAdapter);

// DeleteAsync returns a plain Task: a standard delete response has no body.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected override void ProcessRecord()
body.Properties = Properties!.ToList();


var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("v1.0");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.SchemaExtensions.Client.Models.SchemaExtension? result;
Expand All @@ -81,20 +81,6 @@ protected override void ProcessRecord()
return;
}


if (result is null)
{
WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource.");
try
{
result = client.SchemaExtensions[SchemaExtensionId].GetAsync().GetAwaiter().GetResult();
}
catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException)
{
ThrowGraphRequestFailed(ex, SchemaExtensionId);
return;
}
}
if (result is not null)
WriteObject(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,16 @@
<ProjectReference Include="..\..\..\GraphWrapperRuntime\Runtime\Microsoft.Graph.Wrapper.Runtime.csproj" />
</ItemGroup>

<!-- The module folder may carry ONLY the wrapper assemblies plus the kiota dependencies the
installed Microsoft.Graph.Authentication module does not ship (Std.UriTemplate,
Microsoft.Kiota.Serialization.Multipart). Every other dependency must resolve from that
module's isolated load context: a copy here loads a second type identity into the default
<!-- The module folder carries ONLY the wrapper assemblies. Authentication ships the complete
Kiota dependency closure and bridges its contracts to generated cmdlets. Every dependency
must resolve from that module's isolated load context: a copy here loads a second type identity into the default
context, and the first request through the shared session pipeline dies casting between
the two (proven live: ObservabilityOptions, kiota middleware vs wrapper adapter).
Removal is by package identity, not filename, so the kept assemblies' versions stay
derived from the restore graph instead of being pinned here. -->
Removal is by package identity, not filename. -->
<Target Name="PruneModuleBin" AfterTargets="ResolveReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)"
Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != '' And '%(ReferenceCopyLocalPaths.NuGetPackageId)' != 'Std.UriTemplate' And '%(ReferenceCopyLocalPaths.NuGetPackageId)' != 'Microsoft.Kiota.Serialization.Multipart'" />
Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != ''" />
</ItemGroup>
</Target>

Expand Down
Loading
Loading