azure-functions-openapi-extension
azure-functions-openapi-extension copied to clipboard
OpenApiProperty default array unable to cast to string
Describe the issue swagger or open api documentation document generation throws an error: Unable to cast object of type 'System.Int32[]' to type 'System.String'
To Reproduce Steps to reproduce the behavior:
- add attribute [OpenApiProperty(Default = new int[] { 2, 3 }, Description = "list", Deprecated = false)]
- swagger.json or openapi.yaml generations fail
Expected behavior documentation document is generated without issues
Which model of Azure Functions are you using: in-process or out-of-process? Which .NET version are you using?
Could you please provide some code snippets showing the class and property you've applied the OpenApiProperty
attribute on?