Azure / Azure/azure-functions-openapi-extension
feature request OpenApiExample for interface
Open
discussion
- Dominant language
- C#
- Stars
- 388
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
It would be great if I could define example for an interface. Unfortunately the OpenApExampleAttribe can be used only with a class.
Can you add the AttributeTargets.Interface to the attribute restriction definition of the OpenApiExampleAttribute?
Contributor guide
Research direction
Start by locating the OpenApiExampleAttribute definition and its attribute restriction metadata. Update the allowed targets to include interfaces, then verify that the project builds and that existing attribute behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100