-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
HttpApi
to remove wildcard support for better OpenAPI compat… (
- Loading branch information
Showing
6 changed files
with
48 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
"@effect/platform": minor | ||
--- | ||
|
||
Update `HttpApi` to remove wildcard support for better OpenAPI compatibility. | ||
|
||
The `HttpApi*` modules previously reused the following type from `HttpRouter`: | ||
|
||
```ts | ||
type PathInput = `/${string}` | "*" | ||
``` | ||
However, the `"*"` wildcard value was not handled correctly, as OpenAPI does not support wildcards. | ||
This has been updated to use a more specific type: | ||
```ts | ||
type PathSegment = `/${string}` | ||
``` | ||
This change ensures better alignment with OpenAPI specifications and eliminates potential issues related to unsupported wildcard paths. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters