Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 462 for Less (0.02 sec)

  1. tests/test_path.py

        assert response.json() == {
            "detail": [
                {
                    "type": "less_than",
                    "loc": ["path", "item_id"],
                    "msg": "Input should be less than 3",
                    "input": "42",
                    "ctx": {"lt": 3.0},
                }
            ]
        }
    
    
    def test_path_param_lt_2():
        response = client.get("/path/param-lt/2")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 20.5K bytes
    - Viewed (2)
  2. docs/en/docs/tutorial/path-params-numeric-validations.md

    ## Number validations: greater than and less than or equal { #number-validations-greater-than-and-less-than-or-equal }
    
    The same applies for:
    
    * `gt`: `g`reater `t`han
    * `le`: `l`ess than or `e`qual
    
    {* ../../docs_src/path_params_numeric_validations/tutorial005_an_py39.py hl[10] *}
    
    ## Number validations: floats, greater than and less than { #number-validations-floats-greater-than-and-less-than }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. fastapi/param_functions.py

        lt: Annotated[
            Optional[float],
            Doc(
                """
                Less than. If set, value must be less than this. Only applicable to numbers.
                """
            ),
        ] = None,
        le: Annotated[
            Optional[float],
            Doc(
                """
                Less than or equal. If set, value must be less than or equal to this.
                Only applicable to numbers.
                """
            ),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/path-params-numeric-validations.md

    То же самое применимо к:
    
    * `gt`: больше (`g`reater `t`han)
    * `le`: меньше или равно (`l`ess than or `e`qual)
    
    {* ../../docs_src/path_params_numeric_validations/tutorial005_an_py39.py hl[10] *}
    
    ## Валидация числовых данных: числа с плавающей точкой, больше и меньше { #number-validations-floats-greater-than-and-less-than }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/path-params-numeric-validations.md

    Lo mismo aplica para:
    
    * `gt`: `g`reater `t`han
    * `le`: `l`ess than or `e`qual
    
    {* ../../docs_src/path_params_numeric_validations/tutorial005_an_py39.py hl[10] *}
    
    ## Validaciones numéricas: flotantes, mayor y menor { #number-validations-floats-greater-than-and-less-than }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/path-params-numeric-validations.md

    Das Gleiche gilt für:
    
    * `gt`: `g`reater `t`han (größer als)
    * `le`: `l`ess than or `e`qual (kleiner oder gleich)
    
    {* ../../docs_src/path_params_numeric_validations/tutorial005_an_py39.py hl[10] *}
    
    ## Validierung von Zahlen: Floats, größer und kleiner { #number-validations-floats-greater-than-and-less-than }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/path-params-numeric-validations.md

    O mesmo se aplica a:
    
    * `gt`: maior que (`g`reater `t`han)
    * `le`: menor que ou igual (`l`ess than or `e`qual)
    
    {* ../../docs_src/path_params_numeric_validations/tutorial005_an_py39.py hl[10] *}
    
    ## Validações numéricas: floats, maior que e menor que { #number-validations-floats-greater-than-and-less-than }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  8. tests/test_depends_hashable.py

    # This is more or less a workaround to make Depends and Security hashable
    # as other tools that use them depend on that
    # Ref: https://github.com/fastapi/fastapi/pull/14320
    
    from fastapi import Depends, Security
    
    
    def dep():
        pass
    
    
    def test_depends_hashable():
        dep()  # just for coverage
        d1 = Depends(dep)
        d2 = Depends(dep)
        d3 = Depends(dep, scope="function")
        d4 = Depends(dep, scope="function")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 19 16:50:18 UTC 2025
    - 596 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py

        assert response.json() == {
            "detail": [
                {
                    "loc": ["path", "item_id"],
                    "input": "1001",
                    "msg": "Input should be less than or equal to 1000",
                    "type": "less_than_equal",
                    "ctx": {"le": 1000},
                }
            ]
        }
    
    
    def test_read_items_size_too_small(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. architecture/standards/0009-use-american-english.md

    * **Inconsistent API surface**: Public APIs with mixed spelling conventions appear less professional and polished
    * **Harder for non-native speakers**: Contributors and users for whom English is a second language benefit from a single, consistent convention
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Nov 25 07:01:54 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top