Skip to content

Prune expired deprecated Kiota OpenAPI operations - #3808

Merged
Ramses Sanchez-Hernandez (ramsessanchez) merged 2 commits into
powershell-v3from
ramsessanchez-prune-deprecated-openapi
Oct 1, 2026
Merged

Ramses Sanchez-Hernandez (ramsessanchez) merged 2 commits into
powershell-v3from
ramsessanchez-prune-deprecated-openapi

Conversation

@ramsessanchez

@ramsessanchez Ramses Sanchez-Hernandez (ramsessanchez) commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes # N/A

Changes proposed in this pull request

  • Remove Kiota-compatible OpenAPI operations marked deprecated: true when their x-ms-deprecation.removalDate is on or before UTC today minus a configurable two-day buffer.
  • Remove URI paths only when no HTTP operations remain, preserve generated YAML formatting, and fail before modification when deprecation dates or report destinations are invalid.
  • Write a profile-scoped deprecated-removals.json report keyed by module and URI, with Pester coverage for cutoff behavior, mixed paths, reporting, validation, and idempotence.
  • Document single-document and profile-directory usage, buffer configuration, report placement, and removal behavior.
  • Only configured to run on the openApi doc library used for v3 client and cmdlet generation.

Other links

  • N/A

Add Kiota-compatible OpenAPI post-processing that removes expired deprecated operations and empty paths while recording removals in a profile-scoped JSON report.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: f8237f39-2085-49c4-8029-67ce5a1a346f
Explain single-document and profile-directory usage, cutoff buffering, report placement, and removal behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: f8237f39-2085-49c4-8029-67ce5a1a346f
@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) merged commit 2a2c936 into powershell-v3 Oct 1, 2026
4 checks passed
@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) deleted the ramsessanchez-prune-deprecated-openapi branch October 1, 2026 22:43
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.

2 participants