Is there a way to specify a different example for a request payload on the swag UI? #4252
StingyJack
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The ones it generates are sometimes confusing to consumers, especially when any
dictionary<string, string>
is involved. For example this payload is actually two dictionaries; the outer dictionary has a key for each individual request and the individual request (so the caller can correlate the responses by key), and the inner dictionary are the parameter names and values for the individual request. Both are called additionalProp1, 2, 3, etc.Due to the nature of the API function having variable property names, dictionaries are a must and cannot be replaced with more specifically typed objects. I would much rather have a clearer example request on the UI page like
Is there a way to specify overriddes for the example requests?
Beta Was this translation helpful? Give feedback.
All reactions