Skip to content

Add Sanity Checks to API Spec URL in api_connect Function #7

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

Open
le91688 opened this issue Jun 21, 2023 · 0 comments
Open

Add Sanity Checks to API Spec URL in api_connect Function #7

le91688 opened this issue Jun 21, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@le91688
Copy link
Contributor

le91688 commented Jun 21, 2023

Description

In our current implementation of the api_connect function, we lack sufficient sanity checks on the API spec URL. This can lead to unexpected behaviors, errors, or exceptions if the URL is invalid, inaccessible, or doesn't return the expected data.

Tasks/Enhancements Required:

  • Validate the URL format: The function should first validate if the provided URL has a proper format (scheme, netloc, etc.). If the URL format is invalid, the function should raise a specific exception or return an error message.

Acceptance Criteria:

  • The api_connect function should validate the URL format and return a meaningful error if the URL is invalid.
@le91688 le91688 changed the title URL sanity checking Add Sanity Checks to API Spec URL in api_connect Function Jun 27, 2023
@le91688 le91688 added enhancement New feature or request good first issue Good for newcomers labels Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant