This pull request addresses several issues related to the OpenAPI component schema properties, server endpoints, and path filtering. These changes are related to the issues raised in Issue #1419.
Changes made:
Support for additional properties in New-PodeOAComponentSchemaProperty:
Added support for $Example, $Deprecated, $Required, $Nullable, $ReadOnly, and $WriteOnly properties, which were previously missing.
Fix for Add-PodeOAServerEndpoint:
Updated the function to ensure that only one local endpoint can be defined. It was incorrectly accepting multiple local endpoints before this fix.
Path Filtering for OpenAPI descriptions:
Updated the logic to filter out OpenAPI path definitions that do not match the server endpoint URL.
Example:
Server Endpoint URL: /api/v3
Paths such as /api/v2/test will now be excluded from the OpenAPI description, while valid paths like /api/v3/test will be retained.
Description:
This pull request addresses several issues related to the OpenAPI component schema properties, server endpoints, and path filtering. These changes are related to the issues raised in Issue #1419.
Changes made:
Support for additional properties in
New-PodeOAComponentSchemaProperty
:$Example
,$Deprecated
,$Required
,$Nullable
,$ReadOnly
, and$WriteOnly
properties, which were previously missing.Fix for
Add-PodeOAServerEndpoint
:Path Filtering for OpenAPI descriptions:
/api/v3
/api/v2/test
will now be excluded from the OpenAPI description, while valid paths like/api/v3/test
will be retained.Issue reference: