Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for metadatos (0.05 sec)

  1. docs/de/docs/tutorial/query-params-str-validations.md

    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[22:30] hl[29] *}
    
    ## Zusammenfassung { #recap }
    
    Sie können zusätzliche Validierungen und Metadaten für Ihre Parameter deklarieren.
    
    Allgemeine Validierungen und Metadaten:
    
    * `alias`
    * `title`
    * `description`
    * `deprecated`
    
    Validierungen, die spezifisch für Strings sind:
    
    * `min_length`
    * `max_length`
    * `pattern`
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  2. tests/benchmarks/test_general_performance.py

        name: str
        value: int
        dep: int
    
    
    class LargeIn(BaseModel):
        items: list[dict[str, Any]]
        metadata: dict[str, Any]
    
    
    class LargeOut(BaseModel):
        items: list[dict[str, Any]]
        metadata: dict[str, Any]
    
    
    app = FastAPI()
    
    
    @app.post("/sync/validated", response_model=ItemOut)
    def sync_validated(item: ItemIn, dep: Annotated[int, Depends(dep_b)]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 20:40:26 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. fastapi/_compat/v2.py

            value = getattr(field_info, attr, Undefined)
            if value is not Undefined:
                attributes[attr] = value
        return {
            "annotation": field_info.annotation,
            "metadata": field_info.metadata,
            "attributes": attributes,
        }
    
    
    class BaseConfig:
        pass
    
    
    class ErrorWrapper(Exception):
        pass
    
    
    @dataclass
    class ModelField:
        field_info: FieldInfo
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_metadata/test_tutorial002.py

    from fastapi.testclient import TestClient
    
    from docs_src.metadata.tutorial002_py39 import app
    
    client = TestClient(app)
    
    
    def test_items():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"name": "Foo"}]
    
    
    def test_get_openapi_json_default_url():
        response = client.get("/openapi.json")
        assert response.status_code == 404, response.text
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_metadata/test_tutorial003.py

    from fastapi.testclient import TestClient
    
    from docs_src.metadata.tutorial003_py39 import app
    
    client = TestClient(app)
    
    
    def test_items():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"name": "Foo"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_tutorial001.py

    from sqlmodel import SQLModel, create_engine
    from sqlmodel.main import default_registry
    
    from tests.utils import needs_py310
    
    
    def clear_sqlmodel():
        # Clear the tables in the metadata for the default base model
        SQLModel.metadata.clear()
        # Clear the Models associated with the registry, to avoid warnings
        default_registry.dispose()
    
    
    @pytest.fixture(
        name="client",
        params=[
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 14K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/path-operation-advanced-configuration.md

    ## Zusätzliche Responses { #additional-responses }
    
    Sie haben wahrscheinlich gesehen, wie man das `response_model` und den `status_code` für eine *Pfadoperation* deklariert.
    
    Das definiert die Metadaten der Haupt-<abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr> einer *Pfadoperation*.
    
    Sie können auch zusätzliche Responses mit deren Modellen, Statuscodes usw. deklarieren.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_sql_databases/test_tutorial002.py

    from sqlmodel import SQLModel, create_engine
    from sqlmodel.main import default_registry
    
    from tests.utils import needs_py310
    
    
    def clear_sqlmodel():
        # Clear the tables in the metadata for the default base model
        SQLModel.metadata.clear()
        # Clear the Models associated with the registry, to avoid warnings
        default_registry.dispose()
    
    
    @pytest.fixture(
        name="client",
        params=[
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/schema-extra-example.md

    /// tip | Tipp
    
    Mit derselben Technik können Sie das JSON-Schema erweitern und Ihre eigenen benutzerdefinierten Zusatzinformationen hinzufügen.
    
    Sie könnten das beispielsweise verwenden, um Metadaten für eine Frontend-Benutzeroberfläche usw. hinzuzufügen.
    
    ///
    
    /// info | Info
    
    OpenAPI 3.1.0 (verwendet seit FastAPI 0.99.0) hat Unterstützung für `examples` hinzugefügt, was Teil des **JSON Schema** Standards ist.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. fastapi/routing.py

                    """
                ),
            ] = None,
            openapi_extra: Annotated[
                Optional[dict[str, Any]],
                Doc(
                    """
                    Extra metadata to be included in the OpenAPI schema for this *path
                    operation*.
    
                    Read more about it in the
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top