This is a Minimal API written for a net6.0
ASP.NET Web server. the Program.fs
file will be the only F# file you need to add to a new F# ASP.NET Web app that can be generated with:
dotnet new web -lang F#
To replace the Option<'T>
type with the 'T
type in generated Swagger schemas
swagger.json
is the generated swagger document from running Program.fs
The Parent
type will change from this output:
{
"child": {
"value": {
"text": "string"
}
}
}
To this output:
{
"child": {
"text": "string"
}
}
Improving some bits with resp.
Nullable <- true
printfn
for while-dev-debugging-purposesJsonNamingPolicy.CamelCase.ConvertName(propertyInfo.Name)
for consistent camel casing property namesInput Sample:
and the relevant debugging output sample: