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 correct template in API #1404

Merged
merged 2 commits into from
Jul 24, 2021
Merged

Render correct template in API #1404

merged 2 commits into from
Jul 24, 2021

Conversation

RobbeSneyders
Copy link
Member

@RobbeSneyders RobbeSneyders commented Jul 21, 2021

Fixes #1289.

#1289 (comment) for more info.

I also included a commit which cleans up an unused constant which I noticed while debugging this issue.

@coveralls
Copy link

coveralls commented Jul 21, 2021

Coverage Status

Coverage increased (+0.001%) to 97.021% when pulling c74cfa8 on bugfix/blueprint-template into 803cf63 on main.

@hjacobs
Copy link
Contributor

hjacobs commented Jul 21, 2021

I guess you mean fixes #1289? (#289 is a PR)

@RobbeSneyders
Copy link
Member Author

Good catch! Updated.

Copy link
Member

@Ruwann Ruwann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add a test for this? Would be nice imo, but I don't see a good way of testing this at first sight as it seems to be about the extra static content that is loaded when /ui is called that isn't rendered, while the page itself returns a 200 response

connexion/apis/flask_api.py Show resolved Hide resolved
@RobbeSneyders
Copy link
Member Author

I think adding a test for this isn't straightforward indeed, and don't think it's worth the effort.

@Ruwann Ruwann merged commit 2229831 into main Jul 24, 2021
@Ruwann Ruwann deleted the bugfix/blueprint-template branch July 25, 2021 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serving swagger 2.0 and openapi 3.0 at the same time
4 participants