- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 3,469 for zone (0.04 seconds)
-
tests/test_required_noneable.py
from fastapi.testclient import TestClient app = FastAPI() @app.get("/query") def read_query(q: str | None): return q @app.get("/explicit-query") def read_explicit_query(q: str | None = Query()): return q @app.post("/body-embed") def send_body_embed(b: str | None = Body(embed=True)): return b client = TestClient(app) def test_required_nonable_query_invalid():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 1.5K bytes - Click Count (0) -
docs_src/response_model/tutorial006_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float = 10.5 items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2}, "baz": { "name": "Baz", "description": "There goes my baz",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 816 bytes - Click Count (0) -
docs/uk/docs/tutorial/response-model.md
Ваша модель відповіді може мати значення за замовчуванням, наприклад: {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *} * `description: Union[str, None] = None` (або `str | None = None` у Python 3.10) має значення за замовчуванням `None`. * `tax: float = 10.5` має значення за замовчуванням `10.5`. * `tags: List[str] = []` має значення за замовчуванням порожній список: `[]`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 25.2K bytes - Click Count (0) -
docs/ru/docs/tutorial/response-model.md
У вашей модели ответа могут быть значения по умолчанию, например: {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *} * `description: Union[str, None] = None` (или `str | None = None` в Python 3.10) имеет значение по умолчанию `None`. * `tax: float = 10.5` имеет значение по умолчанию `10.5`. * `tags: List[str] = []` имеет значение по умолчанию пустого списка: `[]`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 25.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/chat/ChatPhaseCallback.java
/** * Called when a chunk of the response is available during streaming. * * @param content the content chunk * @param done true if this is the final chunk */ void onChunk(String content, boolean done); /** * Called when an error occurs during processing. * * @param phase the phase where the error occurred * @param error the error messageCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 15 12:32:04 GMT 2026 - 3.3K bytes - Click Count (0) -
buildscripts/verify-healing-empty-erasure-set.sh
while [ $(/tmp/mc admin info --json myminio | jq '.info.servers[].drives[].state | select(. != "ok")' | wc -l) -gt 0 ]; do sleep 1; done # Wait for all drives to be healed while [ $(/tmp/mc admin info --json myminio | jq '.info.servers[].drives[].healing | select(. != null) | select(. == true)' | wc -l) -gt 0 ]; do sleep 1; done # Wait for Status: in MinIO output while true; do rv=$(check_online) if [ "$rv" != "1" ]; then # success
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jul 12 20:51:54 GMT 2024 - 3.7K bytes - Click Count (0) -
docs/es/docs/how-to/separate-openapi-schemas.md
</div> Esto significa que **siempre tendrá un valor**, solo que a veces el valor podría ser `None` (o `null` en JSON). Eso significa que, los clientes que usan tu API no tienen que revisar si el valor existe o no, pueden **asumir que el campo siempre estará allí**, pero solo que en algunos casos tendrá el valor por defecto de `None`. La forma de describir esto en OpenAPI es marcar ese campo como **requerido**, porque siempre estará allí.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:41:41 GMT 2026 - 4.7K bytes - Click Count (0) -
docs/es/docs/tutorial/body-multiple-params.md
Y también puedes declarar parámetros del cuerpo como opcionales, estableciendo el valor por defecto a `None`: {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *} /// note | Nota Ten en cuenta que, en este caso, el `item` que se tomaría del cuerpo es opcional. Ya que tiene un valor por defecto de `None`. /// ## Múltiples parámetros del cuerpo { #multiple-body-parameters }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:41:41 GMT 2026 - 5.1K bytes - Click Count (0) -
docs/pt/docs/how-to/separate-openapi-schemas.md
</div> Isso significa que ele **sempre terá um valor**, só que às vezes o valor pode ser `None` (ou `null` em termos de JSON). Isso quer dizer que, os clientes que usam sua API não precisam verificar se o valor existe ou não, eles podem **assumir que o campo sempre estará lá**, mas que em alguns casos terá o valor padrão de `None`. A maneira de descrever isso no OpenAPI é marcar esse campo como **obrigatório**, porque ele sempre estará lá.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Jan 20 20:40:17 GMT 2026 - 4.8K bytes - Click Count (0) -
cmd/object-handlers-common.go
// Do not care If-Modified-Since, Because: // 1. If If-Modified-Since condition evaluates to true. // If both of the If-None-Match and If-Modified-Since headers are present in the request as follows: // If-None-Match condition evaluates to false , and; // If-Modified-Since condition evaluates to true ; // Then Amazon S3 returns the 304 Not Modified response code.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Jul 23 12:36:06 GMT 2025 - 15.2K bytes - Click Count (0)