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

ACSBP-3718 Update to use openapi 3.1 #284

Merged
merged 27 commits into from Aug 1, 2023
Merged

ACSBP-3718 Update to use openapi 3.1 #284

merged 27 commits into from Aug 1, 2023

Conversation

auramix
Copy link
Contributor

@auramix auramix commented Mar 15, 2023

These changes represent updating to use OpenApi 3.1, which will represent a major version bump for flask-rebar due to OpenApi's move away from semver in 3.1 and introduction of breaking changes. For a complete list of changes effecting our implementation of a v3 Generator, please see the attached ticket.

JIRA Tickets
ACSBP-3718

@auramix auramix changed the title Acsbp 3718 ACSBP-3718 Update to use openapi 3.1 May 15, 2023
@auramix auramix marked this pull request as ready for review May 15, 2023 22:29
@auramix auramix requested a review from a team as a code owner May 15, 2023 22:29
@auramix auramix requested a review from sprutner May 15, 2023 22:29
@gtmanfred
Copy link
Contributor

Looks like we still need to validate the new swaggerui code here? https://github.com/plangrid/flask-rebar/tree/master/flask_rebar/swagger_ui

@auramix
Copy link
Contributor Author

auramix commented May 16, 2023

Looks like we still need to validate the new swaggerui code here? https://github.com/plangrid/flask-rebar/tree/master/flask_rebar/swagger_ui

I could use a little context on that, as I'm not 100% clear on the function the swagger_ui directory serves. It appears to be home to static assets for generating a ui template that services can use to serve their swagger spec? I thought maybe you meant I should regenerate these static files, but after trying to create a blueprint with the provided function that didn't do what I expected.

@gtmanfred
Copy link
Contributor

No, we just need to grab them from the dist directory in this release, and see if it can load correctly the swagger 3.1 artifacts
https://github.com/swagger-api/swagger-ui/releases/tag/v5.0.0-alpha.13

@gtmanfred
Copy link
Contributor

Here is a link to them in github https://github.com/swagger-api/swagger-ui/tree/v5.0.0-alpha.13/dist

@gtmanfred
Copy link
Contributor

basically, the swagger-ui files vendored in flask-rebar right now haven't been updated in 5 years, we just need to update and vendor the new ones.

@plangrid-chorus
Copy link

Chorus detected one or more security issues with this pull request. See the Checks tab for more details.

As a reminder, please follow the secure code review process as part of the Secure Coding Non-Negotiable requirement.

@gtmanfred
Copy link
Contributor

I think we are still in the alpha release stages right?

run the following from the root of the project.

.. code-block::
curl -L https://api.github.com/repos/swagger-api/swagger-ui/tarball | tar -xv --directory=flask_rebar/swagger_ui/static --strip-components=2 "*/dist/"
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

Copy link
Contributor

@nlawrence22 nlawrence22 left a comment

Choose a reason for hiding this comment

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

This looks good to me, but I would definitely get a second opinion from one of the more seasoned flask developers on the team.

Copy link
Contributor

@airstandley airstandley left a comment

Choose a reason for hiding this comment

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

Looks good 👍

.flake8 Outdated
Comment on lines 6 to 7
select = B950
extend-ignore = E501
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't have a problem with us switching to B950 instead of E501, but this change should be made in a separate PR.

@auramix auramix merged commit 03e660c into master Aug 1, 2023
107 checks passed
@auramix auramix deleted the acsbp-3718 branch August 1, 2023 18:19
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.

None yet

6 participants