Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 37 of 37 for line_length (0.32 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

    ## Agregar más validaciones { #add-more-validations }
    
    También puedes agregar un parámetro `min_length`:
    
    {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *}
    
    ## Agregar expresiones regulares { #add-regular-expressions }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/query-params-str-validations.md

    由于 `Annotated` 可以包含多个元数据标注,你甚至可以用同一个函数与其他工具配合,例如 [Typer](https://typer.tiangolo.com/)。🚀
    
    ## 添加更多校验 { #add-more-validations }
    
    你还可以添加 `min_length` 参数:
    
    {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *}
    
    ## 添加正则表达式 { #add-regular-expressions }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  3. tests/test_path.py

                    "type": "string_too_short",
                    "loc": ["path", "item_id"],
                    "msg": "String should have at least 3 characters",
                    "input": "fo",
                    "ctx": {"min_length": 3},
                }
            ]
        }
    
    
    def test_path_param_maxlength_foo():
        response = client.get("/path/param-maxlength/foo")
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 20.5K bytes
    - Click Count (2)
  4. fastapi/.agents/skills/fastapi/SKILL.md

    @app.post("/items/")
    async def create_items(items: Annotated[list[int], Field(min_length=1), Body()]):
        return items
    ```
    
    instead of:
    
    ```python
    # DO NOT DO THIS
    from typing import Annotated
    
    from fastapi import FastAPI
    from pydantic import Field, RootModel
    
    app = FastAPI()
    
    
    class ItemList(RootModel[Annotated[list[int], Field(min_length=1)]]):
        pass
    
    
    @app.post("/items/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

            }
    
            buffer.append(' ').append(message);
    
            // CHECKSTYLE_OFF: LineLength
            problems.add(new ModelProblemCollectorRequest(severity, version)
                    .setMessage(buffer.toString())
                    .setLocation(getLocation(fieldName, tracker)));
            // CHECKSTYLE_ON: LineLength
        }
    
        private static InputLocation getLocation(String fieldName, InputLocationTracker tracker) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 03 15:06:05 GMT 2025
    - 66.8K bytes
    - Click Count (0)
  6. fastapi/openapi/models.py

        termsOfService: str | None = None
        contact: Contact | None = None
        license: License | None = None
        version: str
    
    
    class ServerVariable(BaseModelWithConfig):
        enum: Annotated[list[str] | None, Field(min_length=1)] = None
        default: str
        description: str | None = None
    
    
    class Server(BaseModelWithConfig):
        url: AnyUrl | str
        description: str | None = None
        variables: dict[str, ServerVariable] | None = None
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  7. docs/en/docs/release-notes.md

    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    def main(
        item_id: int = Path(default=..., gt=0),
        query: str = Query(default=..., max_length=10),
        session: str = Cookie(default=..., min_length=3),
        x_trace: str = Header(default=..., title="Tracing header"),
    ):
        return {"message": "Hello World"}
    ```
    
    ...all these parameters are required because the default value is `...` (Ellipsis).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
Back to Top