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 issue where complex setups like the testing application cause API docs to break down #59

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

Conversation

smt5541
Copy link
Collaborator

@smt5541 smt5541 commented Mar 1, 2025

🛠 Changes being made

Give examples of the changes you've made in this pull request. Include an itemized list if you can.

  • Prepend UUID to the function signatures used as the keys of parameter_validation.fn_list, store this value in the properties of the route function - this ensures that routes generated in functions, where the route's function signature would otherwise be non-unique, are able to be associated with their correct documentation, no matter how many times they are registered with different parameters
  • Make type hint resolution recursive in API documentation
  • Fix type hints in the testing dict_blueprint
  • Prevent generation of multi-source routes in the testing app where both sources are the same

🧠 Rationale behind the change

Why did you choose to make these changes?

I wanted to ensure that the API documentation is reliable, even in unusual application configurations (like the testing app), as well as make the API documentation testable

Does this pull request resolve any open issues?

Closes #57
Closes #55

Were there any trade-offs you had to consider?

No

🧪 Testing

  • [ X ] Have tests been added or updated for the changes introduced in this pull request?

  • [ X ] Are the changes backwards compatible?

If the changes aren't backwards compatible, what other options were explored?

✨ Quality check

  • [ X ] Are your changes free of any erroneous print statements, debuggers or other leftover code?

  • [ X ] Has the README been updated to reflect the changes introduced (if applicable)?

💬 Additional comments

@smt5541 smt5541 requested a review from Ge0rg3 March 1, 2025 23:56
@smt5541 smt5541 self-assigned this Mar 1, 2025
@smt5541 smt5541 linked an issue Mar 1, 2025 that may be closed by this pull request
@smt5541 smt5541 marked this pull request as draft March 1, 2025 23:57
@smt5541 smt5541 marked this pull request as ready for review March 2, 2025 00:48
@smt5541 smt5541 linked an issue Mar 2, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant