- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 1,722 for ujson (0.02 seconds)
-
tests/test_tutorial/test_body_multiple_params/test_tutorial003.py
def test_post_body_valid(client: TestClient): response = client.put( "/items/5", json={ "importance": 2, "item": {"name": "Foo", "price": 50.5}, "user": {"username": "Dave"}, }, ) assert response.status_code == 200 assert response.json() == { "item_id": 5, "importance": 2, "item": { "name": "Foo",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.4K bytes - Click Count (0) -
tests/test_additional_properties_bool.py
def test_call_invalid(): response = client.post("/", json={"foo": {"bar": "baz"}}) assert response.status_code == 422 def test_call_valid(): response = client.post("/", json={}) assert response.status_code == 200 assert response.json() == {} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 3.7K bytes - Click Count (0) -
MIGRATION.md
```bash # Export Solr documents as JSON curl "http://solr-server:8983/solr/collection1/select?q=*:*&rows=10000&wt=json" \ -o solr-export.json ``` **Step 2: Transform to Fess Format** Create a transformation script to map Solr fields to Fess fields: ```python import json # Load Solr export with open('solr-export.json', 'r') as f: solr_data = json.load(f) # Transform documents
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Nov 06 12:40:11 GMT 2025 - 23.2K bytes - Click Count (0) -
tests/test_tutorial/test_request_files/test_tutorial002.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8.2K bytes - Click Count (0) -
cmd/bucket-replication-metrics.go
// XferStats has transfer stats for replication type XferStats struct { Curr float64 `json:"currRate" msg:"cr"` Avg float64 `json:"avgRate" msg:"av"` Peak float64 `json:"peakRate" msg:"p"` N int64 `json:"n" msg:"n"` measure *rateMeasurement `json:"-"` sma *SMA `json:"-"` } // Clone returns a copy of XferStats func (rx *XferStats) Clone() *XferStats {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 14.2K bytes - Click Count (0) -
docs/fr/docs/advanced/additional-responses.md
**FastAPI** prendra le modèle Pydantic à partir de là, générera le `JSON Schema` et le placera au bon endroit. Le bon endroit est : * Dans la clé `content`, qui a pour valeur un autre objet JSON (`dict`) qui contient : * Une clé avec le type de support, par ex. `application/json`, qui contient comme valeur un autre objet JSON, qui contient : * Une clé `schema`, qui a pour valeur le schéma JSON du modèle, voici le bon endroit.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 16:39:20 GMT 2024 - 9.5K bytes - Click Count (0) -
fastapi/openapi/models.py
url: AnyUrl # Ref JSON Schema 2020-12: https://json-schema.org/draft/2020-12/json-schema-validation#name-type SchemaType = Literal[ "array", "boolean", "integer", "null", "number", "object", "string" ] class Schema(BaseModelWithConfig): # Ref: JSON Schema 2020-12: https://json-schema.org/draft/2020-12/json-schema-core.html#name-the-json-schema-core-vocabu # Core Vocabulary
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 15.1K bytes - Click Count (0) -
docs/zh/docs/tutorial/encoder.md
对此你可以使用`jsonable_encoder`。 它接收一个对象,比如Pydantic模型,并会返回一个JSON兼容的版本: {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} 在这个例子中,它将Pydantic模型转换为`dict`,并将`datetime`转换为`str`。 调用它的结果后就可以使用Python标准编码中的<a href="https://docs.python.org/3/library/json.html#json.dumps" class="external-link" target="_blank">`json.dumps()`</a>。 这个操作不会返回一个包含JSON格式(作为字符串)数据的庞大的`str`。它将返回一个Python标准数据结构(例如`dict`),其值和子值都与JSON兼容。 /// noteCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 1.6K bytes - Click Count (0) -
tests/test_tutorial/test_request_form_models/test_tutorial001.py
assert response.status_code == 200 assert response.json() == {"username": "Foo", "password": "secret"} def test_post_body_form_no_password(client: TestClient): response = client.post("/login/", data={"username": "Foo"}) assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "missing",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 5.7K bytes - Click Count (0) -
tests/test_tutorial/test_request_forms/test_tutorial001.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 5.7K bytes - Click Count (0)