From f0886a09a1e245a4bef0dc2ad3385b83d7dddb69 Mon Sep 17 00:00:00 2001 From: Alexandre Stahmer Date: Fri, 24 May 2024 15:47:10 +0200 Subject: [PATCH] chore: add changeset --- .changeset/lovely-carrots-train.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/lovely-carrots-train.md 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.