Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 1,096 for defaulted (0.2 sec)

  1. docs_src/query_params_str_validations/tutorial012_py39.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: list[str] = Query(default=["foo", "bar"])):
        query_items = {"q": q}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 192 bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/query-params-str-validations.md

    Comme nous devons remplacer la valeur par défaut `None` dans la fonction par `Query()`, nous pouvons maintenant définir la valeur par défaut avec le paramètre `Query(default=None)`, il sert le même objectif qui est de définir cette valeur par défaut.
    
    Donc :
    
    ```Python
    q: Union[str, None] = Query(default=None)
    ```
    
    ... rend le paramètre optionnel, et est donc équivalent à :
    
    ```Python
    q: Union[str, None] = None
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 17:14:38 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. callbacks/create.go

    			}
    
    			for _, mapValue := range mapValues {
    				if mapValue != nil {
    					mapValue[pkFieldName] = insertID
    				}
    				insertID += schema.DefaultAutoIncrementIncrement
    			}
    		default:
    			if pkField == nil {
    				return
    			}
    
    			switch db.Statement.ReflectValue.Kind() {
    			case reflect.Slice, reflect.Array:
    				if config.LastInsertIDReversed {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. docs_src/header_params/tutorial001.py

    from typing import Union
    
    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(user_agent: Union[str, None] = Header(default=None)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 214 bytes
    - Viewed (0)
  5. tests/postgres_test.go

    		t.Errorf("Failed to create extension pgcrypto, got error %v", err)
    	}
    
    	DB.Migrator().DropTable(&Yasuo{})
    
    	if err := DB.AutoMigrate(&Yasuo{}); err != nil {
    		t.Fatalf("Failed to migrate for uuid default value, got error: %v", err)
    	}
    
    	yasuo := Yasuo{Name: "jinzhu"}
    	if err := DB.Create(&yasuo).Error; err != nil {
    		t.Fatalf("should be able to create data, but got %v", err)
    	}
    
    	if yasuo.ID == "" {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Oct 08 09:16:32 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  6. docs_src/header_params/tutorial003_py39.py

    from typing import Union
    
    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(x_token: Union[list[str], None] = Header(default=None)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 218 bytes
    - Viewed (0)
  7. docs_src/query_params_str_validations/tutorial005.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str = Query(default="fixedquery", min_length=3)):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 276 bytes
    - Viewed (0)
  8. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

     * are typically shares amongst all tests, a fresh instance will be
     * received here. Use with @BeforeAll and @AfterAll, is not supported.
     *
     * There are 3 ids for instances
     * - The test instance default (passed into constructor)
     * - The test lifecycle default (passed into test method, plus @BeforeEach, @AfterEach)
     * - named instances with @MockWebServerInstance.
     */
    @ExperimentalOkHttpApi
    class MockWebServerExtension :
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 11 12:12:36 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial002_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = Query(default=None, max_length=50)):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 276 bytes
    - Viewed (0)
  10. apache-maven/src/assembly/maven/lib/ext/README.txt

    Use this directory to add third party extensions to Maven Core. These extensions can either extend or override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 23 19:41:57 UTC 2022
    - 143 bytes
    - Viewed (0)
Back to top