-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 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,11 @@ | ||
--- | ||
"typed-openapi": minor | ||
--- | ||
|
||
Thanks to @0237h: | ||
|
||
Allow for finer marking of optional parameters Current behavior allows only for marking _all_ parameters as optional, or | ||
none. | ||
|
||
This change checks first if all parameters are optional, keeping the old behavior if that's the case, otherwise iterates | ||
through the parameters to mark only those that **should** be optional from the OpenAPI spec. |