Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 521 for Extras (0.1 sec)

  1. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py

        response = client.post(
            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "value_error.extra",
                    "loc": ["body", "extra"],
                    "msg": "extra fields not permitted",
                }
            ]
        }
    
    
    @needs_pydanticv1
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an.py

        response = client.post(
            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "value_error.extra",
                    "loc": ["body", "extra"],
                    "msg": "extra fields not permitted",
                }
            ]
        }
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an_p39.py

        response = client.post(
            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "value_error.extra",
                    "loc": ["body", "extra"],
                    "msg": "extra fields not permitted",
                }
            ]
        }
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/header-param-models.md

    <div class="screenshot">
    <img src="/img/tutorial/header-param-models/image01.png">
    </div>
    
    ## Forbid Extra Headers
    
    In some special use cases (probably not very common), you might want to **restrict** the headers that you want to receive.
    
    You can use Pydantic's model configuration to `forbid` any `extra` fields:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="10"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. docs/es/docs/async.md

    Puedes tener múltiples dependencias y subdependencias que se requieren unas a otras (como parámetros de las definiciones de cada función), algunas de ellas pueden crearse con `async def` y otras con `def` normal. Igual todo seguiría funcionando correctamente, y las creadas con `def` normal se llamarían en un thread externo (del threadpool) en lugar de ser "awaited".
    
    ### Otras funciones de utilidades
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 19 18:15:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/query-param-models.md

    <div class="screenshot">
    <img src="/img/tutorial/query-param-models/image01.png">
    </div>
    
    ## Forbid Extra Query Parameters
    
    In some special use cases (probably not very common), you might want to **restrict** the query parameters that you want to receive.
    
    You can use Pydantic's model configuration to `forbid` any `extra` fields:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="10"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/path-params-numeric-validations.md

    /// info | "Informação"
    
    `Query`, `Path` e outras classes que você verá a frente são subclasses de uma classe comum `Param`.
    
    Todas elas compartilham os mesmos parâmetros para validação adicional e metadados que você viu.
    
    ///
    
    /// note | "Detalhes Técnicos"
    
    Quando você importa `Query`, `Path` e outras de `fastapi`, elas são na verdade funções.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/header-param-models.md

    Em alguns casos de uso especiais (provavelmente não muito comuns), você pode querer **restringir** os cabeçalhos que você quer receber.
    
    Você pode usar a configuração dos modelos do Pydantic para proibir (`forbid`) quaisquer campos `extra`:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="10"
    {!> ../../docs_src/header_param_models/tutorial002_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="10"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:41:28 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. cmd/bootstrap-peer-server.go

    		ev, ok := s2.MinioEnv[k]
    		if !ok {
    			missing = append(missing, k)
    		} else if v != ev {
    			mismatching = append(mismatching, k)
    		}
    	}
    	var extra []string
    	for k := range s2.MinioEnv {
    		_, ok := s1.MinioEnv[k]
    		if !ok {
    			extra = append(extra, k)
    		}
    	}
    	msg := "Expected MINIO_* environment name and values across all servers to be same: "
    	if len(missing) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_param_models/test_tutorial002.py

                            "loc": ["header", "tool"],
                            "msg": "Extra inputs are not permitted",
                            "input": "plumbus",
                        }
                    )
                    | IsDict(
                        # TODO: remove when deprecating Pydantic v1
                        {
                            "type": "value_error.extra",
                            "loc": ["header", "tool"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top