- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 20 for v1 (0.01 seconds)
-
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
runJavaBinaryCompatibilityCheck(v1, v2) { assertNotBinaryCompatible() block() } internal fun checkBinaryCompatible(v1: File.() -> Unit = {}, v2: File.() -> Unit = {}, block: CheckResult.() -> Unit = {}): CheckResult = runBinaryCompatibilityCheck(v1, v2) {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 10:14:25 GMT 2025 - 18K bytes - Click Count (0) -
fastapi/_compat/shared.py
warnings.simplefilter("ignore", UserWarning) from pydantic import v1 return isinstance(obj, v1.BaseModel) def is_pydantic_v1_model_class(cls: Any) -> bool: with warnings.catch_warnings(): warnings.simplefilter("ignore", UserWarning) from pydantic import v1 return lenient_issubclass(cls, v1.BaseModel) def annotation_is_pydantic_v1(annotation: Any) -> bool:
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) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial003.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 1.5K bytes - Click Count (0) -
fastapi/encoders.py
from pydantic_core import PydanticUndefinedType from ._compat import ( Url, is_pydantic_v1_model_instance, ) # Taken from Pydantic v1 as is def isoformat(o: Union[datetime.date, datetime.time]) -> str: return o.isoformat() # Adapted from Pydantic v1 # TODO: pv2 should this return strings instead? def decimal_encoder(dec_value: Decimal) -> Union[int, float]: """
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) -
tests/test_tutorial/test_metadata/test_tutorial002.py
def test_get_openapi_json_default_url(): response = client.get("/openapi.json") assert response.status_code == 404, response.text def test_openapi_schema(): response = client.get("/api/v1/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": { "title": "FastAPI", "version": "0.1.0",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 1.2K bytes - Click Count (0) -
tests/test_jsonable_encoder.py
def test_json_encoder_error_with_pydanticv1(): with warnings.catch_warnings(): warnings.simplefilter("ignore", UserWarning) from pydantic import v1 class ModelV1(v1.BaseModel): name: str data = ModelV1(name="test") with pytest.raises(PydanticV1NotSupportedError): jsonable_encoder(data) def test_encode_model_with_config():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 9.2K bytes - Click Count (0) -
tests/test_pydantic_v1_error.py
skip_module_if_py_gte_314() from fastapi import FastAPI from fastapi.exceptions import PydanticV1NotSupportedError with warnings.catch_warnings(): warnings.simplefilter("ignore", UserWarning) from pydantic.v1 import BaseModel def test_raises_pydantic_v1_model_in_endpoint_param() -> None: class ParamModelV1(BaseModel): name: str app = FastAPI() with pytest.raises(PydanticV1NotSupportedError):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 2.3K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py
client = TestClient(app) def test_main(): response = client.get("/app") assert response.status_code == 200 assert response.json() == {"message": "Hello World", "root_path": "/api/v1"} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200 assert response.json() == snapshot( { "openapi": "3.1.0",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 1.4K bytes - Click Count (0) -
pyproject.toml
"docs_src/dependencies/tutorial013_an_py310.py", # temporary code example? "docs_src/dependencies/tutorial014_an_py310.py", # temporary code example? # Pydantic v1 migration, no longer tested "docs_src/pydantic_v1_in_v2/tutorial001_an_py310.py", "docs_src/pydantic_v1_in_v2/tutorial001_an_py39.py", "docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 9.3K bytes - Click Count (0) -
.github/workflows/test.yml
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 08:53:59 GMT 2025 - 4.4K bytes - Click Count (0)