Skip to content

Commit b307885

Browse files
committed
fix: add default value for query param
1 parent 095f532 commit b307885

File tree

1 file changed

+1
-1
lines changed
  • test/Cnblogs.Architecture.IntegrationTestProject

1 file changed

+1
-1
lines changed

test/Cnblogs.Architecture.IntegrationTestProject/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
enableHead: true);
4444
v1.MapQuery(
4545
"strings/{stringId:int}",
46-
async (int stringId, [FromQuery] bool found)
46+
async (int stringId, [FromQuery] bool found = true)
4747
=> await Task.FromResult(new GetStringQuery(StringId: stringId, Found: found)));
4848
v1.MapQuery<ListStringsQuery>("strings");
4949
v1.MapCommand(

0 commit comments

Comments
 (0)