Repository navigation
Revert "Fix unresolved references in OpenApiWalker" - #1507
Darrel (darrelmiller) wants to merge 1 commit into
Conversation
|
|
I'd like to see the unit tests outlined in #1506 added as part of the revert if possible. This way if the author of the PR wants to come back with an updated PR, it'll prevent any regression. |
|
I tried to write a test for the found issue, but it seems, that it also does not work when the fix was not applied. I tried the following based of commit d1cf89f. Therefore I think reverting the fix will not be beneficial. securitySchemeReference.yaml OpenApiReadingWritingTests.cs Results in a file with the following content: |
|
I have also tested the concerns highlighted on #1506 and found that they're unrelated to the fix done by #1491 and therefore, can be addressed separately. File 1: File 2. The |
|
I do not believe it is possible to properly support reference objects at the root of a component with the current design. I believe this PR reintroduces the condition that allows the following to get rendered properly. I am not suggesting this is particularly useful, but this is a scenario that we used to support. |
|
After review, we decided that the bug that this PR introduces where we can't accurately write out a document that has a double reference is a lesser bug than not resolving a reference at the root of the component. Therefore we will close this PR to revert the change. |

Reverts #1491 due to issues identified in #1506