Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HeroPublic (0.06 sec)

  1. docs/en/docs/tutorial/sql-databases.md

    {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[56:62] hl[56:58] *}
    
    /// tip
    
    Now we use `response_model=HeroPublic` instead of the **return type annotation** `-> HeroPublic` because the value that we are returning is actually *not* a `HeroPublic`.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sql_databases/test_tutorial002.py

                                    "content": {
                                        "application/json": {
                                            "schema": {
                                                "$ref": "#/components/schemas/HeroPublic"
                                            }
                                        }
                                    },
                                },
                                "422": {
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top