- Sort Score
- Result 10 results
- Languages All
Results 851 - 860 of 1,492 for ndjson (0.07 sec)
-
docs/ja/docs/tutorial/body-multiple-params.md
{!../../docs_src/body_multiple_params/tutorial001.py!} ``` /// note | "備考" この場合、ボディから取得する`item`はオプションであることに注意してください。デフォルト値は`None`です。 /// ## 複数のボディパラメータ 上述の例では、*path operations*は`item`の属性を持つ以下のようなJSONボディを期待していました: ```JSON { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } ``` しかし、`item`と`user`のように複数のボディパラメータを宣言することもできます: ```Python hl_lines="22"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.8K bytes - Viewed (0) -
logger/sql_test.go
package logger_test import ( "database/sql/driver" "encoding/json" "fmt" "regexp" "strings" "testing" "github.com/jinzhu/now" "gorm.io/gorm/logger" ) type JSON json.RawMessage func (j JSON) Value() (driver.Value, error) { if len(j) == 0 { return nil, nil } return json.RawMessage(j).MarshalJSON() } type ExampleStruct struct { Name string Val string }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/en/docs/how-to/general.md
## Convert any Data to JSON-compatible To convert any data to JSON-compatible, read the docs for [Tutorial - JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}. ## OpenAPI Metadata - Docs
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 2.3K bytes - Viewed (0) -
cmd/config-migrate.go
newCfg, err := readServerConfig(GlobalContext, objAPI, data) if err == nil { return newCfg, nil } // Read older `.minio.sys/config/config.json`, if not // possible just fail. if err = json.Unmarshal(data, cfg); err != nil { // Unable to parse old JSON simply re-initialize a new one. return newServerCfg() } } if !globalCredViaEnv && cfg.Credential.IsValid() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0) -
tests/test_additional_responses_bad.py
"content": {"application/json": {"schema": {}}}, }, }, "summary": "A", "operationId": "a_a_get", } } }, } client = TestClient(app) def test_openapi_schema(): with pytest.raises(ValueError):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.1K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
// The result will be compared with the result obtained from json.unMarshal of the byte data. func TestGetXLMetaV1Jsoniter1(t *testing.T) { xlMetaJSON := getXLMetaBytes(1) var unMarshalXLMeta xlMetaV1Object if err := json.Unmarshal(xlMetaJSON, &unMarshalXLMeta); err != nil { t.Errorf("Unmarshalling failed: %v", err) } var jsoniterXLMeta xlMetaV1Object json := jsoniter.ConfigCompatibleWithStandardLibrary
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 17.6K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008b.py
response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found"} def test_owner_error(): response = client.get("/items/plumbus") assert response.status_code == 400, response.text assert response.json() == {"detail": "Owner error: Rick"} def test_get_item(): response = client.get("/items/portal-gun")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 697 bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model_pv2.py
"type": "value_error", } ) ] @needs_pydanticv2 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/model/{name}": { "get": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 6.3K bytes - Viewed (0) -
internal/config/compress/compress.go
"github.com/minio/pkg/v3/env" ) // Config represents the compression settings. type Config struct { Enabled bool `json:"enabled"` AllowEncrypted bool `json:"allow_encryption"` Extensions []string `json:"extensions"` MimeTypes []string `json:"mime-types"` } // Compression environment variables const ( Extensions = "extensions" AllowEncrypted = "allow_encryption"
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5K bytes - Viewed (0) -
cmd/erasure-sets.go
} // Reset for the next interval timer.Reset(globalAPIConfig.getStaleUploadsCleanupInterval()) } } type auditObjectOp struct { Name string `json:"name"` Pool int `json:"poolId"` Set int `json:"setId"` } func (op auditObjectOp) String() string { // Flatten the auditObjectOp return fmt.Sprintf("name=%s,pool=%d,set=%d", op.Name, op.Pool, op.Set) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 27 10:41:37 UTC 2024 - 37K bytes - Viewed (1)