diff --git a/.changeset/lovely-carrots-train.md b/.changeset/lovely-carrots-train.md new file mode 100644 index 0000000..a56d791 --- /dev/null +++ b/.changeset/lovely-carrots-train.md @@ -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.