Skip to content

Commit

Permalink
rust: Fix jq script that removes nullable attributes (#1534)
Browse files Browse the repository at this point in the history
It was removing it even when the property was marked required, which was
not intended.
  • Loading branch information
svix-jplatte authored Nov 27, 2024
2 parents 6c7c253 + d3794a4 commit 34a910a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regen_openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn openapi-generator-cli generate -i openapi.json -g csharp -o csharp/ -c csha
jq --indent 4 '.components.schemas |= with_entries(
if .key | endswith("Patch") then .
else
(.required // []) as $required |
(.value.required // []) as $required |
if .value | has("properties") then
.value.properties |= with_entries(
if .key | IN($required[]) then .
Expand Down

0 comments on commit 34a910a

Please sign in to comment.