-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
After updating from Microsoft.AspNetCore.OpenApi 10.0.1 to 10.0.2 the OpenApi specification is missing the enum description.
[Description("My enum description")]
public enum MyEnum
{
None,
FirstOption,
SecondOption
}In v10.0.1
"MyEnum": {
"enum": [
"None",
"FirstOption",
"SecondOption"
],
"description": "My enum description"
}In v10.0.2
"MyEnum": {
"enum": [
"None",
"FirstOption",
"SecondOption"
]
}Expected Behavior
"MyEnum": {
"enum": [
"None",
"FirstOption",
"SecondOption"
],
"description": "My enum description"
}Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
10.0.100
Anything else?
No response
desjoerd
Metadata
Metadata
Assignees
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi