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

[FIX] Fix register_existing_resources #236

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

paaanic
Copy link

@paaanic paaanic commented Jul 13, 2022

This PR contains 2 changes in FlaskApiSpec.register_existing_resources:

  • Move skipping static rules to the beginning as there is no need to try splitting names if we want to continue loop
  • Change name.split -> name.rsplit(..., maxsplit=1) to handle nested blueprints because they produce more than one dot in name

Move skipping static rules to the beginning of the loop
Add handling of nested blueprints in name splitting
@paaanic paaanic changed the title Fix routes autodiscovering [FIX] Fix register_existing_resources Jul 13, 2022
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.

1 participant