Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render response models breadth-first #5802

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Conversation

heaths
Copy link
Member

@heaths heaths commented Mar 24, 2023

Swagger response models were being rendered depth-first which made results very misleading, such that response models' properties were listed and seemingly nested after nested property model types, making those properties look like part of another model.

Fixes #5795

Swagger response models were being rendered depth-first which made results very misleading, such that response models' properties were listed and seemingly nested after nested property model types, making those properties look like part of another model.

Fixes Azure#5795
@heaths heaths requested a review from a team as a code owner March 24, 2023 01:30
@praveenkuttappan
Copy link
Member

Thanks @heaths for this change. I will review and it and we can get this included in next APIView release.

@praveenkuttappan
Copy link
Member

@chidozieononiwu just FYI.

@praveenkuttappan praveenkuttappan merged commit cc94822 into Azure:main Mar 27, 2023
@heaths heaths deleted the issue5795 branch March 27, 2023 16:57
@heaths
Copy link
Member Author

heaths commented Mar 27, 2023

@praveenkuttappan when might this go into production, and is it possible to regenerate all swagger views? Or will that potentially break comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Properties of models should not be interspersed with other models
2 participants