azure-functions-openapi-extension icon indicating copy to clipboard operation
azure-functions-openapi-extension copied to clipboard

feature request OpenApiExample for interface

Open AT-OSWORKS opened this issue 4 years ago • 1 comments

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?

AT-OSWORKS avatar Nov 26 '21 11:11 AT-OSWORKS

@AT-OSWORKS Thanks for the issue! Would you please elaborate the request with some examples? I'm not sure how an interface is used to provide an example.

justinyoo avatar Feb 11 '22 06:02 justinyoo