Skip to content

Fix #7040 preserve enum type for numeric DefaultValueAttribute defaults#9263

Merged
michaelstaib merged 5 commits intomainfrom
mst/issue-7040
Mar 2, 2026
Merged

Fix #7040 preserve enum type for numeric DefaultValueAttribute defaults#9263
michaelstaib merged 5 commits intomainfrom
mst/issue-7040

Conversation

@michaelstaib
Copy link
Copy Markdown
Member

@michaelstaib michaelstaib commented Feb 27, 2026

Fixes #7040

  • Added a regression test for enum input defaults coming from underlying numeric values (the shape produced by F# metadata in this scenario).
  • Updated default value handling to coerce numeric enum-underlying defaults back to the configured enum type when the argument/input field type is already enum-typed.
  • This prevents DefaultValueAttribute defaults like 0 from overriding the input field type to Int.

@github-actions
Copy link
Copy Markdown
Contributor

Fusion Gateway Performance Results

Progress: 0/6 benchmarks completed — this report updates as each job finishes.

Simple Composite Query

Req/s Err%
Constant 2 (50 VUs) pending pending
Ramping 2 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 2 pending pending pending pending pending pending
Ramping 2 pending pending pending pending pending pending

Deep Recursion Query

Req/s Err%
Constant 2 (50 VUs) pending pending
Ramping 2 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 2 pending pending pending pending pending pending
Ramping 2 pending pending pending pending pending pending

Variable Batching Throughput

Req/s Err%
Constant 2 (50 VUs) pending pending
Ramping 2 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 2 pending pending pending pending pending pending
Ramping 2 pending pending pending pending pending pending

Runner 2 = benchmarking-2

Run 22499411463 • Commit 66cbe00 • Fri, 27 Feb 2026 18:49:56 GMT

@michaelstaib michaelstaib added 🎬 ready Ready to merge labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using DefaultValueAttribute on enum input type field gives Int in schema on F#

1 participant