Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2781 - 2790 of 2,992 for DEFAULT (0.08 seconds)

  1. docs/tr/docs/tutorial/query-params-str-validations.md

    ```Python
    q: str | None = Query(default=None, max_length=50)
    ```
    
    Bu, veriyi doğrular, veri geçerli değilse net bir hata gösterir ve parametreyi OpenAPI şemasındaki *path operation* içinde dokümante eder.
    
    ### Varsayılan değer olarak `Query` veya `Annotated` içinde `Query` { #query-as-the-default-value-or-in-annotated }
    
    `Annotated` içinde `Query` kullanırken `Query` için `default` parametresini kullanamayacağınızı unutmayın.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 17.3K bytes
    - Click Count (0)
  2. buildscripts/upgrade-tests/compose.yml

        volumes:
          - ./nginx.conf:/etc/nginx/nginx.conf:ro
        ports:
        - "9000:9000"
        - "9001:9001"
        depends_on:
          - minio1
          - minio2
          - minio3
          - minio4
    
    ## By default this config uses default local driver,
    ## For custom volumes replace with volume driver configuration.
    volumes:
      data1-1:
      data1-2:
      data1-3:
      data2-1:
      data2-2:
      data2-3:
      data3-1:
      data3-2:
      data3-3:
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Jun 13 05:08:11 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  3. docs/tr/docs/tutorial/body.md

    /// note | Not
    
    FastAPI, `q` değerinin zorunlu olmadığını `= None` default değerinden anlayacaktır.
    
    `str | None`, FastAPI tarafından bu değerin zorunlu olmadığını belirlemek için kullanılmaz; FastAPI bunun zorunlu olmadığını `= None` default değeri olduğu için bilir.
    
    Ancak type annotation'larını eklemek, editor'ünüzün size daha iyi destek vermesini ve hataları yakalamasını sağlar.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  4. docs_src/query_params_str_validations/tutorial012_py310.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}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 192 bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/query-params-str-validations.md

    在這種情況下(未使用 `Annotated`),我們必須用 `Query()` 取代函式中的預設值 `None`,因此需要用 `Query(default=None)` 來設定預設值;對 FastAPI 而言,這達到相同目的。
    
    所以:
    
    ```Python
    q: str | None = Query(default=None)
    ```
    
    …會讓參數變為可選、預設值是 `None`,等同於:
    
    ```Python
    q: str | None = None
    ```
    
    但用 `Query` 的版本會明確宣告它是查詢參數。
    
    接著,我們可以傳更多參數給 `Query`。此例中是用於字串的 `max_length` 參數:
    
    ```Python
    q: str | None = Query(default=None, max_length=50)
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  6. api/go1.21.txt

    pkg log/slog, func BoolValue(bool) Value #56345
    pkg log/slog, func DebugContext(context.Context, string, ...interface{}) #61200
    pkg log/slog, func Debug(string, ...interface{}) #56345
    pkg log/slog, func Default() *Logger #56345
    pkg log/slog, func Duration(string, time.Duration) Attr #56345
    pkg log/slog, func DurationValue(time.Duration) Value #56345
    pkg log/slog, func ErrorContext(context.Context, string, ...interface{}) #61200
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Click Count (0)
  7. docs_src/query_params_str_validations/tutorial005_py310.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})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 276 bytes
    - Click Count (0)
  8. tests/test_tutorial/test_body_updates/test_tutorial001.py

                                },
                                "tax": {"title": "Tax", "type": "number", "default": 10.5},
                                "tags": {
                                    "title": "Tags",
                                    "type": "array",
                                    "items": {"type": "string"},
                                    "default": [],
                                },
                            },
                        },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeContext.java

        public LineReader reader;
    
        // Indentation control for nested logging
        private int indentLevel = 0;
        private String indentString = Indentation.DEFAULT;
    
        public void addInHeader(String text) {
            addInHeader(AttributedStyle.DEFAULT, text);
        }
    
        public void addInHeader(AttributedStyle style, String text) {
            AttributedStringBuilder asb = new AttributedStringBuilder();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  10. internal/grid/msg_gen.go

    				err = msgp.WrapError(err, "Time")
    				return
    			}
    		case "Token":
    			z.Token, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Token")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 22.4K bytes
    - Click Count (0)
Back to Top