Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 491 - 500 of 1,922 for djson (0.13 seconds)

  1. internal/config/help.go

    // with value as description of the keys.
    type HelpKV struct {
    	Key         string `json:"key"`
    	Type        string `json:"type"`
    	Description string `json:"description"`
    	Optional    bool   `json:"optional"`
    
    	// Indicates if the value contains sensitive info that shouldn't be exposed
    	// in certain apis (such as Health Diagnostics/Callhome)
    	Sensitive bool `json:"-"`
    
    	// Indicates if the value is a secret such as a password that shouldn't be
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 2.8K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/body-multiple-params.md

    ///
    
    ## Múltiplos parâmetros de corpo { #multiple-body-parameters }
    
    No exemplo anterior, as *operações de rota* esperariam um JSON no corpo contendo os atributos de um `Item`, exemplo:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:48:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/advanced/response-directly.md

    {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *}
    
    由於這會在 Rust 端發生,效能會比用一般的 Python 與 `JSONResponse` 類別來完成好得多。
    
    當使用 `response_model` 或回傳型別時,FastAPI 不會使用 `jsonable_encoder` 來轉換資料(那會較慢),也不會使用 `JSONResponse` 類別。
    
    相反地,它會取用用回應模型(或回傳型別)透過 Pydantic 產生的 JSON 位元組,並直接回傳具備正確 JSON 媒體型別(`application/json`)的 `Response`。
    
    ## 注意事項 { #notes }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  4. internal/grid/types.go

    	}
    	return &zero
    }
    
    // JSON is a wrapper around a T object that can be serialized.
    // There is an internal value
    type JSON[T any] struct {
    	p   *JSONPool[T]
    	val *T
    }
    
    // NewJSON returns a new JSONPool.
    // No initial value is set.
    func (p *JSONPool[T]) NewJSON() *JSON[T] {
    	var j JSON[T]
    	j.p = p
    	return &j
    }
    
    // NewJSONWith returns a new JSON with the provided value.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  5. tests/test_strict_content_type_nested.py

        assert response.status_code == 200
        assert response.json() == {"key": "value"}
    
    
    def test_strict_inner_accepts_json_content_type():
        response = client_nested.post("/outer/strict/items/", json={"key": "value"})
        assert response.status_code == 200
    
    
    def test_default_inner_accepts_json_content_type():
        response = client_nested.post("/outer/default/items/", json={"key": "value"})
        assert response.status_code == 200
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 23 17:45:20 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateRestSpecPlugin.java

                        filter.exclude(DOUBLE_STAR + "/_common.json");
                    }));
                    // This must always be specified precisely, so that
                    // projects other than `rest-api-spec` can use this task.
                    task.setJsonSchema(new File(project.getRootDir(), "rest-api-spec/src/main/resources/schema.json"));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.6K bytes
    - Click Count (0)
  7. docs/tr/docs/tutorial/security/simple-oauth2.md

    Bir sonraki bölümde, password hashing ve <abbr title="JSON Web Tokens">JWT</abbr> token’ları ile gerçekten güvenli bir implementasyon göreceksiniz.
    
    Ama şimdilik ihtiyacımız olan spesifik detaylara odaklanalım.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip | İpucu
    
    Spesifikasyona göre, bu örnekteki gibi `access_token` ve `token_type` içeren bir JSON döndürmelisiniz.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

        response = client.put(
            "/items/123",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
                "tags": ["foo", "bar", "foo"],
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "item_id": 123,
            "item": {
                "name": "Foo",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  9. cmd/rebalance-admin.go

    	NumObjects  uint64        `json:"objects"`
    	NumVersions uint64        `json:"versions"`
    	Bytes       uint64        `json:"bytes"`
    	Bucket      string        `json:"bucket"`
    	Object      string        `json:"object"`
    	Elapsed     time.Duration `json:"elapsed"`
    	ETA         time.Duration `json:"eta"`
    }
    
    type rebalancePoolStatus struct {
    	ID       int               `json:"id"`       // Pool index (zero-based)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  10. tests/test_multi_body_errors.py

        return {"item": item}
    
    
    client = TestClient(app)
    
    
    def test_put_correct_body():
        response = client.post("/items/", json=[{"name": "Foo", "age": 5}])
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "item": [
                    {
                        "name": "Foo",
                        "age": "5",
                    }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 6.7K bytes
    - Click Count (0)
Back to Top