Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for needy (0.02 sec)

  1. tests/test_tutorial/test_query_params/test_tutorial006.py

        c = TestClient(mod.app)
        return c
    
    
    def test_foo_needy_very(client: TestClient):
        response = client.get("/items/foo?needy=very")
        assert response.status_code == 200
        assert response.json() == {
            "item_id": "foo",
            "needy": "very",
            "skip": 0,
            "limit": None,
        }
    
    
    def test_foo_no_needy(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params/test_tutorial005.py

    from docs_src.query_params.tutorial005_py39 import app
    
    client = TestClient(app)
    
    
    def test_foo_needy_very():
        response = client.get("/items/foo?needy=very")
        assert response.status_code == 200
        assert response.json() == {"item_id": "foo", "needy": "very"}
    
    
    def test_foo_no_needy():
        response = client.get("/items/foo")
        assert response.status_code == 422
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. .github/workflows/translate.yml

              COMMAND: ${{ github.event.inputs.command }}
    
      translate:
        if: github.repository_owner == 'fastapi'
        needs: langs
        runs-on: ubuntu-latest
        strategy:
          matrix:
            lang: ${{ fromJson(needs.langs.outputs.langs) }}
            command: ${{ fromJson(needs.langs.outputs.commands) }}
        permissions:
          contents: write
        steps:
          - name: Dump GitHub context
            env:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:48:45 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. fastapi/_compat/v2.py

                field_dict = asdict(self.field_info)
                annotated_args = (
                    field_dict["annotation"],
                    *field_dict["metadata"],
                    # this FieldInfo needs to be created again so that it doesn't include
                    # the old field info metadata and only the rest of the attributes
                    Field(**field_dict["attributes"]),
                )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  5. fastapi/param_functions.py

            ),
        ] = None,
        include_in_schema: Annotated[
            bool,
            Doc(
                """
                To include (or not) this parameter field in the generated OpenAPI.
                You probably don't need it, but it's available.
    
                This affects the generated OpenAPI (e.g. visible at `/docs`).
                """
            ),
        ] = True,
        json_schema_extra: Annotated[
            Union[dict[str, Any], None],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  6. fastapi/routing.py

                Optional[Any],
                Doc(
                    """
                    Only used internally by FastAPI to handle dependency overrides.
    
                    You shouldn't need to use it. It normally points to the `FastAPI` app
                    object.
                    """
                ),
            ] = None,
            route_class: Annotated[
                type[APIRoute],
                Doc(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

        * [Path Parameters and Numeric Validations - Order the parameters as you need, tricks](https://fastapi.tiangolo.com/tutorial/path-params-numeric-validations/#order-the-parameters-as-you-need-tricks)
            * [Better with `Annotated`](https://fastapi.tiangolo.com/tutorial/path-params-numeric-validations/#better-with-annotated)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top