You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, I'd expect that the TestSubClass in the swagger example would have a value of "Hello" in swagger, however it is not picked up and falls back to the default value for a string.
The text was updated successfully, but these errors were encountered:
Swashbuckle.AspNetCore supports adding examples from XML documentation, which might already cover your use case, in which case you can stop using this package and close your issue.
If examples from XML documentation doesn't work for you, then feel free to leave your issue open.
The examples provider doesn't seem to respect if the example provided is a sub class of another object.
If I have a nested object within the request object, the example is not picked up in Swagger. For example:
In this example, I'd expect that the
TestSubClass
in the swagger example would have a value of "Hello" in swagger, however it is not picked up and falls back to the default value for a string.The text was updated successfully, but these errors were encountered: