- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 57 for if (0.01 seconds)
-
fastapi/openapi/utils.py
if path_definitions: definitions.update(path_definitions) if definitions: components["schemas"] = {k: definitions[k] for k in sorted(definitions)} if components: output["components"] = components output["paths"] = paths if webhook_paths: output["webhooks"] = webhook_paths if tags: output["tags"] = tags if external_docs:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 23.2K bytes - Click Count (0) -
fastapi/_compat/v2.py
) -> dict[str, Any]: new_schema = deepcopy(schema) for key, value in new_schema.items(): if key == "$ref": value = schema["$ref"] if isinstance(value, str): ref_name = schema["$ref"].split("/")[-1] if ref_name in old_name_to_new_name_map: new_name = old_name_to_new_name_map[ref_name]
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 19.1K bytes - Click Count (0) -
fastapi/routing.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 174.6K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/StageTriggers.kt
features { publishBuildStatusToGithub(model) } if (generateTriggers) { val enableTriggers = model.branch.isMainBranch || model.branch.isLegacyRelease if (stage.trigger == Trigger.EACH_COMMIT) { val effectiveTriggerBranches = mutableListOf(model.branch.branchName) if (model.branch.isMaster) {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 12:17:39 GMT 2025 - 7.2K bytes - Click Count (0) -
scripts/translate.py
Translate HTML abbr elements («<abbr title="description">text</abbr>») as follows:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:05:53 GMT 2025 - 34.1K bytes - Click Count (0) -
fastapi/encoders.py
sqlalchemy_safe=sqlalchemy_safe, ) if isinstance(obj, Enum): return obj.value if isinstance(obj, PurePath): return str(obj) if isinstance(obj, (str, int, float, type(None))): return obj if isinstance(obj, PydanticUndefinedType): return None if isinstance(obj, dict): encoded_dict = {} allowed_keys = set(obj.keys())Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 10.7K bytes - Click Count (0) -
fastapi/dependencies/utils.py
errors.extend(body_errors) if dependant.http_connection_param_name: values[dependant.http_connection_param_name] = request if dependant.request_param_name and isinstance(request, Request): values[dependant.request_param_name] = request elif dependant.websocket_param_name and isinstance(request, WebSocket): values[dependant.websocket_param_name] = request if dependant.background_tasks_param_name:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 37.6K bytes - Click Count (3) -
fastapi/_compat/shared.py
def annotation_is_pydantic_v1(annotation: Any) -> bool: if is_pydantic_v1_model_class(annotation): return True origin = get_origin(annotation) if origin is Union or origin is UnionType: for arg in get_args(annotation): if is_pydantic_v1_model_class(arg): return True if field_annotation_is_sequence(annotation):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 6.7K bytes - Click Count (0) -
fastapi/param_functions.py
the dependency is declared again for the rest of the request (for example if the dependency is needed by several dependencies), the value will be re-used for the rest of the request. Set `use_cache` to `False` to disable this behavior and ensure the dependency is called again (if declared more than once) in the same request.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 63K bytes - Click Count (0) -
tests/test_request_params/test_file/test_optional.py
async def read_optional_bytes(p: Annotated[Optional[bytes], File()] = None): return {"file_size": len(p) if p else None} @app.post("/optional-uploadfile", operation_id="optional_uploadfile") async def read_optional_uploadfile(p: Annotated[Optional[UploadFile], File()] = None): return {"file_size": p.size if p else None} @pytest.mark.parametrize( "path", [ "/optional-bytes",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 9.7K bytes - Click Count (0)