Description of the Change:
This pull request introduces a new function, Rename-PodeOADefinitionTagName, which allows renaming an existing OpenAPI definition tag in Pode. This enhancement simplifies the management of OpenAPI definition tags and ensures a more streamlined configuration process.
Key Changes:
Added Rename-PodeOADefinitionTagName function.
The function renames a specified Definition Tag or the default tag if no tag is specified.
Ensures that the new tag name does not already exist.
Updates the default and selected definition tags if applicable.
Throws an error if used within a Select-PodeOADefinition script block.
Includes improvements to the way the default OpenAPI definition tag is managed.
Examples:
Renaming a specific OpenAPI definition tag:
Description of the Change: This pull request introduces a new function,
Rename-PodeOADefinitionTagName
, which allows renaming an existing OpenAPI definition tag in Pode. This enhancement simplifies the management of OpenAPI definition tags and ensures a more streamlined configuration process.Key Changes:
Rename-PodeOADefinitionTagName
function.Definition Tag
or the default tag if no tag is specified.Select-PodeOADefinition
script block.Examples: Renaming a specific OpenAPI definition tag:
Renaming the default OpenAPI definition tag:
Notes:
Select-PodeOADefinition
script block.Pester Tests: Included Pester tests to validate the functionality:
Select-PodeOADefinition
script block.Documentation: For detailed usage and examples, refer to the documentation file included in the pull request.