FastAPI framework, high performance, easy to learn, fast to code, ready for production
2188 matches across 12 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …m_response/test_tutorial002_tutorial003_tutorial004.py | 0 | <html> <head> <title>some html in here</title> </head> <body> <h1>look ma! html!</h1> </body> </html> |
| HIGH | docs_src/custom_response/tutorial004_py310.py | 0 | <html> <head> <title>some html in here</title> </head> <body> <h1>look ma! html!</h1> </body> </html> |
| HIGH | docs_src/custom_response/tutorial002_py310.py | 0 | <html> <head> <title>some html in here</title> </head> <body> <h1>look ma! html!</h1> </body> </html> |
| HIGH | docs_src/custom_response/tutorial003_py310.py | 0 | <html> <head> <title>some html in here</title> </head> <body> <h1>look ma! html!</h1> </body> </html> |
| HIGH | …eration_configurations/test_tutorial003_tutorial004.py | 0 | create an item with all the information: - **name**: each item must have a name - **description**: a long description - |
| HIGH | …_src/path_operation_configuration/tutorial005_py310.py | 0 | create an item with all the information: - **name**: each item must have a name - **description**: a long description - |
| HIGH | …_src/path_operation_configuration/tutorial004_py310.py | 0 | create an item with all the information: - **name**: each item must have a name - **description**: a long description - |
| HIGH | fastapi/applications.py | 0 | additional responses to be shown in openapi. it will be added to the generated openapi (e.g. visible at `/docs`). read m |
| HIGH | fastapi/applications.py | 0 | additional responses to be shown in openapi. it will be added to the generated openapi (e.g. visible at `/docs`). read m |
| HIGH | fastapi/routing.py | 0 | additional responses to be shown in openapi. it will be added to the generated openapi (e.g. visible at `/docs`). read m |
| HIGH | fastapi/routing.py | 0 | additional responses to be shown in openapi. it will be added to the generated openapi (e.g. visible at `/docs`). read m |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/routing.py | 0 | customize the function used to generate unique ids for the *path operations* shown in the generated openapi. this is par |
| HIGH | fastapi/applications.py | 0 | a list of tags to be applied to all the *path operations* in this router. it will be added to the generated openapi (e.g |
| HIGH | fastapi/routing.py | 0 | a list of tags to be applied to all the *path operations* in this router. it will be added to the generated openapi (e.g |
| HIGH | fastapi/routing.py | 0 | a list of tags to be applied to all the *path operations* in this router. it will be added to the generated openapi (e.g |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/routing.py | 0 | list of *path operations* that will be used as openapi callbacks. this is only for openapi documentation, the callbacks |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/applications.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| HIGH | fastapi/routing.py | 0 | the url path to be used for this *path operation*. for example, in `http://example.com/items`, the path is `/items`. |
| 486 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_datastructures.py | 15 | def test_default_placeholder_equals(): |
| LOW | tests/test_datastructures.py | 22 | def test_default_placeholder_bool(): |
| LOW | tests/test_datastructures.py | 29 | def test_upload_file_is_closed(tmp_path: Path): |
| LOW | tests/test_starlette_exception.py | 23 | async def no_body_status_code_exception(): |
| LOW | tests/test_starlette_exception.py | 28 | async def no_body_status_code_with_detail_exception(): |
| LOW | tests/test_starlette_exception.py | 61 | def test_get_starlette_item_not_found(): |
| LOW | tests/test_starlette_exception.py | 68 | def test_no_body_status_code_exception_handlers(): |
| LOW | tests/test_starlette_exception.py | 74 | def test_no_body_status_code_with_detail_exception_handlers(): |
| LOW | tests/test_multi_body_errors.py | 40 | def test_jsonable_encoder_requiring_error(): |
| LOW | tests/test_multi_body_errors.py | 56 | def test_put_incorrect_body_multiple(): |
| LOW | tests/test_security_http_digest_description.py | 19 | def test_security_http_digest(): |
| LOW | tests/test_security_http_digest_description.py | 25 | def test_security_http_digest_no_credentials(): |
| LOW | tests/test_security_http_digest_description.py | 32 | def test_security_http_digest_incorrect_scheme_credentials(): |
| LOW | tests/test_union_body_discriminator_annotated.py | 48 | def test_union_body_discriminator_assignment(client: TestClient) -> None: |
| LOW | tests/test_union_body_discriminator_annotated.py | 54 | def test_union_body_discriminator_annotated(client: TestClient) -> None: |
| LOW | tests/test_security_oauth2.py | 64 | def test_strict_login_no_data(): |
| LOW | tests/test_security_oauth2.py | 91 | def test_strict_login_no_grant_type(): |
| LOW | tests/test_security_oauth2.py | 114 | def test_strict_login_incorrect_grant_type(grant_type: str): |
| LOW | tests/test_security_oauth2.py | 133 | def test_strict_login_correct_grant_type(): |
| LOW | tests/test_security_http_basic_optional.py | 29 | def test_security_http_basic_no_credentials(): |
| LOW | tests/test_security_http_basic_optional.py | 35 | def test_security_http_basic_invalid_credentials(): |
| LOW | tests/test_security_http_basic_optional.py | 44 | def test_security_http_basic_non_basic_credentials(): |
| LOW | tests/test_response_model_invalid.py | 10 | def test_invalid_response_model_raises(): |
| LOW | tests/test_response_model_invalid.py | 19 | def test_invalid_response_model_sub_type_raises(): |
| LOW | tests/test_response_model_invalid.py | 28 | def test_invalid_response_model_in_responses_raises(): |
| LOW | tests/test_response_model_invalid.py | 37 | def test_invalid_response_model_sub_type_in_responses_raises(): |
| LOW | tests/test_dependency_yield_scope.py | 54 | def get_named_regular_func_session(session: SessionFuncDep) -> Any: |
| LOW | tests/test_dependency_yield_scope.py | 128 | def get_regular_function_scope(sessions: RegularSessionsDep) -> Any: |
| LOW | tests/test_dependency_yield_scope.py | 193 | def test_named_function_scope() -> None: |
| LOW | tests/test_dependency_yield_scope.py | 201 | def test_regular_function_scope() -> None: |
| LOW | tests/test_dependency_yield_scope.py | 209 | def test_router_level_dep_scope_function() -> None: |
| LOW | tests/test_dependency_yield_scope.py | 215 | def test_router_level_dep_scope_request() -> None: |
| LOW | tests/test_dependency_yield_scope.py | 222 | def test_app_level_dep_scope_function() -> None: |
| LOW | tests/test_dependency_yield_scope.py | 235 | def test_app_level_dep_scope_request() -> None: |
| LOW | tests/test_multi_query_errors.py | 22 | def test_multi_query_incorrect(): |
| LOW | tests/test_response_change_status_code.py | 23 | def test_dependency_set_status_code(): |
| LOW | tests/test_forms_from_non_typing_sequences.py | 25 | def test_python_list_param_as_form(): |
| LOW | tests/test_forms_from_non_typing_sequences.py | 33 | def test_python_set_param_as_form(): |
| LOW | tests/test_forms_from_non_typing_sequences.py | 41 | def test_python_tuple_param_as_form(): |
| LOW | tests/test_strict_content_type_app_level.py | 24 | def test_default_strict_rejects_no_content_type(): |
| LOW | tests/test_strict_content_type_app_level.py | 29 | def test_default_strict_accepts_json_content_type(): |
| LOW | tests/test_strict_content_type_app_level.py | 35 | def test_lax_accepts_no_content_type(): |
| LOW | tests/test_strict_content_type_app_level.py | 41 | def test_lax_accepts_json_content_type(): |
| LOW | tests/test_security_scopes_dont_propagate.py | 38 | def test_security_scopes_dont_propagate(): |
| LOW | tests/test_default_response_class_router.py | 202 | def test_router_b_a_c_override(): |
| LOW | tests/test_params_repr.py | 65 | def test_header_repr_ellipsis(): |
| LOW | tests/test_params_repr.py | 85 | def test_cookie_repr_ellipsis(): |
| LOW | tests/test_union_inherited_body.py | 18 | def save_union_different_body(item: ExtendedItem | Item): |
| LOW | tests/test_sse.py | 47 | def sse_items_sync_no_annotation(): |
| LOW | tests/test_sse.py | 108 | def test_async_generator_with_model(client: TestClient): |
| LOW | tests/test_sse.py | 129 | def test_sync_generator_with_model(client: TestClient): |
| LOW | tests/test_sse.py | 140 | def test_async_generator_no_annotation(client: TestClient): |
| LOW | tests/test_sse.py | 151 | def test_sync_generator_no_annotation(client: TestClient): |
| LOW | tests/test_sse.py | 183 | def test_sse_events_with_fields(client: TestClient): |
| LOW | tests/test_sse.py | 202 | def test_mixed_plain_and_sse_events(client: TestClient): |
| LOW | tests/test_sse.py | 212 | def test_string_data_json_encoded(client: TestClient): |
| LOW | tests/test_sse.py | 219 | def test_server_sent_event_null_id_rejected(): |
| LOW | tests/test_sse.py | 226 | def test_server_sent_event_single_line_fields_reject_newlines( |
| LOW | tests/test_sse.py | 233 | def test_server_sent_event_negative_retry_rejected(): |
| LOW | tests/test_sse.py | 238 | def test_server_sent_event_float_retry_rejected(): |
| 1239 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …s/test_request_params/test_cookie/test_required_str.py | 176 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_cookie/test_required_str.py | 282 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_cookie/test_required_str.py | 12 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_cookie/test_required_str.py | 79 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_cookie/test_optional_str.py | 150 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_cookie/test_optional_str.py | 233 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_cookie/test_optional_str.py | 11 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_cookie/test_optional_str.py | 72 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_form/test_list.py | 183 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_form/test_list.py | 294 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_form/test_list.py | 13 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_form/test_list.py | 84 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_required_str.py | 170 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_required_str.py | 277 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_required_str.py | 13 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_required_str.py | 80 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_optional_str.py | 148 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_optional_str.py | 231 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_optional_str.py | 12 | # ===================================================================================== |
| MEDIUM | …sts/test_request_params/test_form/test_optional_str.py | 72 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_form/test_optional_list.py | 158 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_form/test_optional_list.py | 244 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_form/test_optional_list.py | 12 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_form/test_optional_list.py | 77 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_header/test_list.py | 180 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_header/test_list.py | 287 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_header/test_list.py | 12 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_header/test_list.py | 82 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_required_str.py | 170 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_required_str.py | 274 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_required_str.py | 12 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_required_str.py | 78 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_optional_str.py | 147 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_optional_str.py | 228 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_optional_str.py | 11 | # ===================================================================================== |
| MEDIUM | …s/test_request_params/test_header/test_optional_str.py | 71 | # ===================================================================================== |
| MEDIUM | …/test_request_params/test_header/test_optional_list.py | 159 | # ===================================================================================== |
| MEDIUM | …/test_request_params/test_header/test_optional_list.py | 242 | # ===================================================================================== |
| MEDIUM | …/test_request_params/test_header/test_optional_list.py | 11 | # ===================================================================================== |
| MEDIUM | …/test_request_params/test_header/test_optional_list.py | 78 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_required.py | 87 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_required.py | 188 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_required.py | 300 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_required.py | 11 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_list.py | 11 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_list.py | 90 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_list.py | 194 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_list.py | 309 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_optional.py | 79 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_optional.py | 165 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_optional.py | 256 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_file/test_optional.py | 11 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_file/test_optional_list.py | 87 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_file/test_optional_list.py | 179 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_file/test_optional_list.py | 273 | # ===================================================================================== |
| MEDIUM | …ts/test_request_params/test_file/test_optional_list.py | 11 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_body/test_list.py | 182 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_body/test_list.py | 293 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_body/test_list.py | 13 | # ===================================================================================== |
| MEDIUM | tests/test_request_params/test_body/test_list.py | 85 | # ===================================================================================== |
| 46 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_security_oauth2.py | 3 | |
| LOW | tests/test_stringified_annotation_dependency.py | 1 | |
| LOW | …pydanticv2_dataclasses_uuid_stringified_annotations.py | 1 | |
| LOW | tests/test_stringified_annotations_simple.py | 1 | |
| LOW | fastapi/responses.py | 5 | |
| LOW | fastapi/responses.py | 6 | |
| LOW | fastapi/responses.py | 7 | |
| LOW | fastapi/responses.py | 9 | |
| LOW | fastapi/responses.py | 10 | |
| LOW | fastapi/responses.py | 11 | |
| LOW | fastapi/responses.py | 12 | |
| LOW | fastapi/templating.py | 1 | |
| LOW | fastapi/websockets.py | 1 | |
| LOW | fastapi/websockets.py | 2 | |
| LOW | fastapi/websockets.py | 3 | |
| LOW | fastapi/concurrency.py | 8 | |
| LOW | fastapi/concurrency.py | 10 | |
| LOW | fastapi/__init__.py | 5 | |
| LOW | fastapi/__init__.py | 7 | |
| LOW | fastapi/__init__.py | 8 | |
| LOW | fastapi/__init__.py | 9 | |
| LOW | fastapi/__init__.py | 10 | |
| LOW | fastapi/__init__.py | 11 | |
| LOW | fastapi/__init__.py | 12 | |
| LOW | fastapi/__init__.py | 13 | |
| LOW | fastapi/__init__.py | 14 | |
| LOW | fastapi/__init__.py | 15 | |
| LOW | fastapi/__init__.py | 16 | |
| LOW | fastapi/__init__.py | 17 | |
| LOW | fastapi/__init__.py | 18 | |
| LOW | fastapi/__init__.py | 19 | |
| LOW | fastapi/__init__.py | 20 | |
| LOW | fastapi/__init__.py | 21 | |
| LOW | fastapi/__init__.py | 22 | |
| LOW | fastapi/__init__.py | 23 | |
| LOW | fastapi/__init__.py | 24 | |
| LOW | fastapi/__init__.py | 25 | |
| LOW | fastapi/types.py | 7 | |
| LOW | fastapi/staticfiles.py | 1 | |
| LOW | fastapi/utils.py | 23 | |
| LOW | fastapi/routing.py | 89 | |
| LOW | fastapi/testclient.py | 1 | |
| LOW | fastapi/requests.py | 1 | |
| LOW | fastapi/requests.py | 2 | |
| LOW | fastapi/datastructures.py | 12 | |
| LOW | fastapi/datastructures.py | 13 | |
| LOW | fastapi/datastructures.py | 14 | |
| LOW | fastapi/datastructures.py | 16 | |
| LOW | fastapi/datastructures.py | 17 | |
| LOW | fastapi/middleware/gzip.py | 1 | |
| LOW | fastapi/middleware/cors.py | 1 | |
| LOW | fastapi/middleware/__init__.py | 1 | |
| LOW | fastapi/middleware/httpsredirect.py | 1 | |
| LOW | fastapi/middleware/trustedhost.py | 1 | |
| LOW | fastapi/middleware/wsgi.py | 1 | |
| LOW | fastapi/security/__init__.py | 1 | |
| LOW | fastapi/security/__init__.py | 2 | |
| LOW | fastapi/security/__init__.py | 3 | |
| LOW | fastapi/security/__init__.py | 4 | |
| LOW | fastapi/security/__init__.py | 5 | |
| 45 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_union_forms.py | 31 | "/form-union/", data={"name": "John Doe", "email": "john@example.com"} |
| LOW | tests/test_union_forms.py | 35 | "received": {"name": "John Doe", "email": "john@example.com"} |
| LOW | tests/test_stringified_annotation_dependency.py | 16 | return ["John Doe", "Jane Doe"] |
| LOW | tests/test_stringified_annotation_dependency.py | 16 | return ["John Doe", "Jane Doe"] |
| LOW | tests/test_stringified_annotation_dependency.py | 46 | assert response.json() == ["John Doe", "Jane Doe"] |
| LOW | tests/test_stringified_annotation_dependency.py | 46 | assert response.json() == ["John Doe", "Jane Doe"] |
| LOW | tests/test_get_model_definitions_formfeed_escape.py | 32 | address=Address(line_1="123 Main St", city="Anytown", state_province="CA"), |
| LOW | tests/test_get_model_definitions_formfeed_escape.py | 45 | "line_1": "123 Main St", |
| LOW | …rial/test_extra_models/test_tutorial001_tutorial002.py | 32 | "full_name": "John Doe", |
| LOW | …rial/test_extra_models/test_tutorial001_tutorial002.py | 39 | "full_name": "John Doe", |
| LOW | tests/test_tutorial/test_settings/test_app01.py | 26 | monkeypatch.setenv("ADMIN_EMAIL", "admin@example.com") |
| LOW | tests/test_tutorial/test_settings/test_app01.py | 54 | "admin_email": "admin@example.com", |
| LOW | tests/test_tutorial/test_settings/test_app03.py | 28 | monkeypatch.setenv("ADMIN_EMAIL", "admin@example.com") |
| LOW | tests/test_tutorial/test_settings/test_app03.py | 31 | assert settings.admin_email == "admin@example.com" |
| LOW | tests/test_tutorial/test_settings/test_app03.py | 36 | monkeypatch.setenv("ADMIN_EMAIL", "admin@example.com") |
| LOW | tests/test_tutorial/test_settings/test_app03.py | 42 | "admin_email": "admin@example.com", |
| LOW | tests/test_tutorial/test_settings/test_tutorial001.py | 10 | monkeypatch.setenv("ADMIN_EMAIL", "admin@example.com") |
| LOW | tests/test_tutorial/test_settings/test_tutorial001.py | 21 | "admin_email": "admin@example.com", |
| LOW | tests/test_tutorial/test_settings/test_app02.py | 33 | monkeypatch.setenv("ADMIN_EMAIL", "admin@example.com") |
| LOW | …ts/test_tutorial/test_python_types/test_tutorial010.py | 5 | assert get_person_name(Person("John Doe")) == "John Doe" |
| LOW | …ts/test_tutorial/test_python_types/test_tutorial011.py | 22 | "id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]", |
| LOW | …rial/test_python_types/test_tutorial001_tutorial002.py | 18 | mock_print.assert_called_with("John Doe") |
| LOW | …tutorial/test_body_multiple_params/test_tutorial002.py | 33 | "user": {"username": "johndoe", "full_name": "John Doe"}, |
| LOW | …tutorial/test_body_multiple_params/test_tutorial002.py | 45 | "user": {"username": "johndoe", "full_name": "John Doe"}, |
| LOW | …tutorial/test_body_multiple_params/test_tutorial002.py | 159 | "user": {"full_name": "John Doe"}, |
| LOW | …tutorial/test_body_multiple_params/test_tutorial002.py | 166 | "input": {"full_name": "John Doe"}, |
| LOW | tests/test_tutorial/test_security/test_tutorial002.py | 36 | "full_name": "John Doe", |
| LOW | tests/test_tutorial/test_security/test_tutorial003.py | 56 | "full_name": "John Doe", |
| LOW | tests/test_tutorial/test_security/test_tutorial004.py | 75 | "full_name": "John Doe", |
| LOW | tests/test_tutorial/test_security/test_tutorial005.py | 94 | "full_name": "John Doe", |
| LOW | docs/zh-hant/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/zh-hant/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/zh-hant/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| LOW | docs/ja/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/ja/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/ja/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| LOW | docs/ru/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/ru/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/ru/docs/tutorial/security/simple-oauth2.md | 231 | "full_name": "John Doe", |
| LOW | docs/pt/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/pt/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/pt/docs/tutorial/security/simple-oauth2.md | 248 | "full_name": "John Doe", |
| LOW | docs/zh/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/zh/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/zh/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| LOW | docs/uk/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/uk/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/uk/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| LOW | docs/de/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/de/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/de/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| LOW | docs/ko/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/ko/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/ko/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| LOW | docs/fr/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/fr/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/fr/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| LOW | docs/es/docs/features.md | 55 | my_user: User = User(id=3, name="John Doe", joined="2018-07-19") |
| LOW | docs/es/docs/tutorial/security/oauth2-jwt.md | 230 | "full_name": "John Doe", |
| LOW | docs/es/docs/tutorial/security/simple-oauth2.md | 247 | "full_name": "John Doe", |
| 16 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | fastapi/encoders.py | 129 | |
| LOW | fastapi/routing.py | 351 | |
| LOW | fastapi/routing.py | 382 | |
| LOW | fastapi/routing.py | 812 | |
| LOW | fastapi/routing.py | 1578 | |
| LOW | fastapi/routing.py | 500 | |
| LOW | fastapi/routing.py | 535 | |
| LOW | fastapi/routing.py | 565 | |
| LOW | fastapi/dependencies/utils.py | 286 | |
| LOW | fastapi/dependencies/utils.py | 362 | |
| LOW | fastapi/dependencies/utils.py | 393 | |
| LOW | fastapi/dependencies/utils.py | 598 | |
| LOW | fastapi/dependencies/utils.py | 784 | |
| LOW | fastapi/dependencies/utils.py | 916 | |
| LOW | fastapi/openapi/utils.py | 107 | |
| LOW | fastapi/openapi/utils.py | 260 | |
| LOW | fastapi/openapi/utils.py | 514 | |
| LOW | fastapi/_compat/shared.py | 109 | |
| LOW | fastapi/_compat/v2.py | 446 | |
| LOW | scripts/contributors.py | 175 | |
| LOW | scripts/notify_translations.py | 306 | |
| LOW | scripts/doc_parsing_utils.py | 141 | |
| LOW | scripts/doc_parsing_utils.py | 482 | |
| LOW | scripts/doc_parsing_utils.py | 570 | |
| LOW | scripts/docs.py | 207 | |
| LOW | scripts/docs.py | 543 | |
| LOW | scripts/docs.py | 670 | |
| LOW | scripts/docs.py | 780 | |
| LOW | scripts/people.py | 268 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_ws_router.py | 220 | except Exception as e: # pragma: no cover |
| LOW | tests/test_ws_router.py | 245 | except Exception as e: |
| MEDIUM | tests/test_ws_router.py | 217 | def catcher(websocket, call_next): |
| LOW | tests/test_validation_error_context.py | 91 | except Exception: |
| LOW | tests/test_validation_error_context.py | 104 | except Exception: |
| LOW | tests/test_validation_error_context.py | 118 | except Exception: |
| LOW | tests/test_validation_error_context.py | 131 | except Exception: |
| LOW | tests/test_validation_error_context.py | 145 | except Exception: |
| LOW | fastapi/concurrency.py | 30 | except Exception as e: |
| LOW | fastapi/encoders.py | 346 | except Exception as e: |
| LOW | fastapi/encoders.py | 351 | except Exception as e: |
| LOW | fastapi/routing.py | 270 | except Exception: |
| LOW | fastapi/routing.py | 445 | except Exception as e: |
| MEDIUM | scripts/translation_fixer.py | 97 | print(f"Error processing {path}: {e}") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs_src/websockets_/tutorial002_an_py310.py | 35 | var ws = null; |
| HIGH | docs_src/websockets_/tutorial002_py310.py | 33 | var ws = null; |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …s/test_tutorial/test_sql_databases/test_tutorial002.py | 59 | # Create a hero |
| MEDIUM | …s/test_tutorial/test_sql_databases/test_tutorial001.py | 59 | # Create a hero |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docs/en/data/sponsors.yml | 63 | # title: Learn to build high-quality web apps with best practices |
| MEDIUM | fastapi/routing.py | 324 | # facilitate profiling endpoints, since inner functions are harder to profile. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_schema_extra_examples.py | 61 | # def form_examples( |
| LOW | tests/test_request_params/test_cookie/test_list.py | 1 | # Currently, there is no way to pass multiple cookies with the same name. |
| LOW | …/test_request_params/test_cookie/test_optional_list.py | 1 | # Currently, there is no way to pass multiple cookies with the same name. |
| LOW | fastapi/applications.py | 1041 | # Before this was also used for closing dependencies with yield but |
| LOW | fastapi/routing.py | 541 | # `anyio.fail_after` never wraps the generator's |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | fastapi/dependencies/utils.py | 879 | # Check if it's a Union type (covers both typing.Union and types.UnionType in Python 3.10+) |
| LOW | scripts/docs.py | 710 | # Check if the _an counterpart (or non-_an counterpart) is referenced. |