Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 8,191 for Required (0.06 seconds)

  1. tests/test_request_params/test_query/test_required_str.py

    # Without aliases
    
    
    @app.get("/required-str")
    async def read_required_str(p: str):
        return {"p": p}
    
    
    class QueryModelRequiredStr(BaseModel):
        p: str
    
    
    @app.get("/model-required-str")
    async def read_model_required_str(p: Annotated[QueryModelRequiredStr, Query()]):
        return {"p": p.p}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-str", "/model-required-str"],
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  2. tests/test_get_model_definitions_formfeed_escape.py

                                    "title": "State Province",
                                    "type": "string",
                                },
                            },
                            "required": ["line_1", "city", "state_province"],
                            "title": "Address",
                            "type": "object",
                        },
                        "Facility": {
                            "properties": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 6K bytes
    - Click Count (0)
  3. tests/test_no_schema_split.py

                            "parameters": [
                                {
                                    "name": "input_message",
                                    "in": "query",
                                    "required": True,
                                    "schema": {"type": "string", "title": "Input Message"},
                                }
                            ],
                            "responses": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  4. tests/test_request_params/test_form/test_required_str.py

    @pytest.mark.parametrize(
        "path",
        ["/required-str", "/model-required-str"],
    )
    def test_required_str_schema(path: str):
        openapi = app.openapi()
        body_model_name = get_body_model_name(openapi, path)
    
        assert app.openapi()["components"]["schemas"][body_model_name] == {
            "properties": {
                "p": {"title": "P", "type": "string"},
            },
            "required": ["p"],
            "title": body_model_name,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  5. tests/test_request_params/test_header/test_list.py

    
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str_schema(path: str):
        assert app.openapi()["paths"][path]["get"]["parameters"] == snapshot(
            [
                {
                    "required": True,
                    "schema": {
                        "title": "P",
                        "type": "array",
                        "items": {"type": "string"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 11.3K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/security/oauth2-scopes.md

    The *path operation* itself also declares a scope, `"items"`, so this will also be in the list of `security_scopes.scopes` passed to `get_current_user`.
    
    Here's how the hierarchy of dependencies and scopes looks like:
    
    * The *path operation* `read_own_items` has:
        * Required scopes `["items"]` with the dependency:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  7. tests/test_request_params/test_path/test_required_str.py

            ),
            pytest.param(
                "/required-validation-alias/{p_val_alias}",
                "p_val_alias",
                "P Val Alias",
                id="required-validation-alias",
            ),
            pytest.param(
                "/required-alias-and-validation-alias/{p_val_alias}",
                "p_val_alias",
                "P Val Alias",
                id="required-alias-and-validation-alias",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 09 15:35:43 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                {
                    "loc": ["body", "name"],
                    "input": {},
                    "msg": "Field required",
                    "type": "missing",
                },
                {
                    "loc": ["body", "price"],
                    "input": {},
                    "msg": "Field required",
                    "type": "missing",
                },
            ]
        }
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  9. .github/ISSUE_TEMPLATE/bug_report.yaml

          render: java
        validations:
          required: true
    
      - type: textarea
        attributes:
          label: Expected Behavior
          description: What did you expect to happen?
        validations:
          required: true
    
      - type: textarea
        attributes:
          label: Actual Behavior
          description: What actually happened?
        validations:
          required: true
    
      - type: dropdown
        attributes:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 16 20:08:25 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  10. tests/test_filter_pydantic_sub_model_pv2.py

                            "summary": "Get Model A",
                            "operationId": "get_model_a_model__name__get",
                            "parameters": [
                                {
                                    "required": True,
                                    "schema": {"title": "Name", "type": "string"},
                                    "name": "name",
                                    "in": "path",
                                }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.7K bytes
    - Click Count (0)
Back to Top