Open baskarmib opened 2 years ago
I was wondering if the same is case with inherited classes. I am inheriting a child class from base and using the typeof(childclass) in OpenApiRequestBody but getting empty object in swagger ui
I have not tested this with inherited classes but might be a related issue @rdhaundiyal . Looking forward to hear from the team.
I'm curious on this item as well.
Describe the issue OpenApi Document generation is not including the schema definition of the type of Array.
To Reproduce Steps to reproduce the behavior:
Request Class -
Expected behavior
Schemas should have body and convertedPayload "components": { "schemas": { "functionRequest": { "type": "object", "properties": { "body": { "type": "array", "items": { "$ref": "#/components/schemas/body" }, "description": "The body contains the array of html content to convert" } }, "example": "{\"body\":[{\"content\":\"
This is a test
\"},{\"content\":\"This is a test
\"}]}" }, "functionResponse": { "type": "object", "properties": { "convertedPayload": { "type": "array", "items": { "$ref": "#/components/schemas/convertedPayload" } }, "errorCode": { "type": "string" }, "errorDescription": { "type": "string" } } } },Environment (please complete the following information, if applicable):
Additional context It would be a great to add an example using nested class example.