Files
windmill/backend/tests
0659b8a125 fix(csharp-parser): mark parameters with a default value as optional (#10185)
* fix(csharp-parser): mark parameters with a default value as optional

C# main parameters that declare a default (e.g. `Main(string s = "hi")`)
were emitted with has_default = false even though their parsed default was
retained, so the inferred schema marked them as required. Derive has_default
from whether a default was parsed, consistent with the other language parsers.

* fix(csharp): give omitted arguments their declared default and mark every defaulted parameter optional

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(csharp): bind verbatim @-named arguments and test declared defaults end to end

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(csharp): find declared defaults by parameter name so a params array does not break the lookup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: hugocasa <hugo@casademont.ch>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:18:54 +01:00
..