SwaggerUI Middleware documentUrls... bug? #3768
Closed
pinkfloydx33
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Yep, this is a bug. Looks like it's been wrong since it was implemented in #3263 due to a copy-paste error and was missed during review. Would you like to submit a PR to fix it @pinkfloydx33? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not hitting any issues personally, but I was reviewing the notes/changelog for the just released 10.1.1 and I saw this in the
RespondWithDocumentUrlsmethod:If the user does not pass in their own serializer options, this will serialize the
Urlsobject using the internal JSON context. If that somehow fails and returnsnull, then the entireConfigObjectwould be serialized when it hits the null-coalescing assignment.But, if the user does pass in serializer options, then this method will always only ever return
[]because the null-coalescing assignment to thejsonvariable would never do anything. Right?So there are two potentially odds things here:
[]if you use your own serializer optionsI am not opening this as an issue because I'm not entirely sure what the intent of this code is... but I think someone should review it because something seems off
@martincostello
Beta Was this translation helpful? Give feedback.
All reactions