- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ConfigDict (0.06 sec)
-
tests/test_additional_properties_bool.py
from dirty_equals import IsDict from fastapi import FastAPI from fastapi._compat import PYDANTIC_V2 from fastapi.testclient import TestClient from pydantic import BaseModel, ConfigDict class FooBaseModel(BaseModel): if PYDANTIC_V2: model_config = ConfigDict(extra="forbid") else: class Config: extra = "forbid" class Foo(FooBaseModel): pass app = FastAPI()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.2K bytes - Viewed (0) -
tests/test_read_with_orm_mode.py
from typing import Any from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel, ConfigDict from .utils import needs_pydanticv1, needs_pydanticv2 @needs_pydanticv2 def test_read_with_orm_mode() -> None: class PersonBase(BaseModel): name: str lastname: str class Person(PersonBase): @property def full_name(self) -> str:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 2.4K bytes - Viewed (0) -
tests/test_compat.py
get_model_fields, is_bytes_sequence_annotation, is_scalar_field, is_uploadfile_sequence_annotation, ) from fastapi.testclient import TestClient from pydantic import BaseConfig, BaseModel, ConfigDict from pydantic.fields import FieldInfo from .utils import needs_pydanticv1, needs_pydanticv2 @needs_pydanticv2 def test_model_field_default_required(): # For coverage
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Sep 11 07:45:30 UTC 2024 - 3.5K bytes - Viewed (0)