- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 254 for a_uuid (0.04 sec)
-
docs/en/docs/advanced/response-directly.md
For example, you cannot put a Pydantic model in a `JSONResponse` without first converting it to a `dict` with all the data types (like `datetime`, `UUID`, etc) converted to JSON-compatible types. For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response: ```Python hl_lines="6-7 21-22"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
cmd/rebalance-admin.go
} // rebalanceAdminStatus holds rebalance status related information exported to mc, console, etc. type rebalanceAdminStatus struct { ID string // identifies the ongoing rebalance operation by a uuid Pools []rebalancePoolStatus `json:"pools"` // contains all pools, including inactive StoppedAt time.Time `json:"stoppedAt,omitempty"` }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Dec 22 00:56:43 UTC 2023 - 3.8K bytes - Viewed (0) -
.teamcity/src/test/kotlin/CIConfigIntegrationTests.kt
"Not defined: $it" ) } } @Test fun uuidsAreUnique() { val uuidList = model.stages.flatMap { it.functionalTests.map { ft -> ft.uuid } } assertEquals(uuidList.distinct(), uuidList) } @Test fun testsAreCorrectlyConfiguredForAllSubProjects() { model.subprojects.subprojects.filter {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 18 07:02:47 UTC 2024 - 13.4K bytes - Viewed (0) -
cmd/object-api-utils.go
} return false } // mustGetUUID - get a random UUID. func mustGetUUID() string { u, err := uuid.NewRandom() if err != nil { logger.CriticalIf(GlobalContext, err) } return u.String() } // mustGetUUIDBytes - get a random UUID as 16 bytes unencoded. func mustGetUUIDBytes() []byte { u, err := uuid.NewRandom() if err != nil { logger.CriticalIf(GlobalContext, err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 37.1K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
if err := xl2.Load(trimmed); err == nil { t.Fatal("metadata corruption not detected") } } // TestUsesDataDir tests xlMetaV2.UsesDataDir func TestUsesDataDir(t *testing.T) { vID := uuid.New() dataDir := uuid.New() transitioned := make(map[string][]byte) transitioned[ReservedMetadataPrefixLower+TransitionStatus] = []byte(lifecycle.TransitionComplete) toBeRestored := make(map[string]string)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt
private val buckets: Map<TestCoverage, List<BuildTypeBucket>> by lazy { val uuidToTestCoverage = model.stages.flatMap { it.functionalTests }.associateBy { it.uuid } val testCoverageAndBuckets = JSON.parseArray(testBucketsJson.readText()) as JSONArray testCoverageAndBuckets.associate { testCoverageAndBucket -> testCoverageAndBucket as JSONObject
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jun 12 09:50:29 UTC 2024 - 9K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle_test.go
package lifecycle import ( "bytes" "encoding/xml" "fmt" "net/http" "net/http/httptest" "strconv" "strings" "testing" "time" "github.com/dustin/go-humanize" "github.com/google/uuid" "github.com/minio/minio/internal/bucket/object/lock" xhttp "github.com/minio/minio/internal/http" ) func TestParseAndValidateLifecycleConfig(t *testing.T) { testCases := []struct { inputConfig string
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 55.1K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-data-types.md
しかし、より複雑なデータ型を使用することもできます。 そして、今まで見てきたのと同じ機能を持つことになります: * 素晴らしいエディタのサポート * 受信したリクエストからのデータ変換 * レスポンスデータのデータ変換 * データの検証 * 自動注釈と文書化 ## 他のデータ型 ここでは、使用できる追加のデータ型のいくつかを紹介します: * `UUID`: * 多くのデータベースやシステムで共通のIDとして使用される、標準的な「ユニバーサルにユニークな識別子」です。 * リクエストとレスポンスでは`str`として表現されます。 * `datetime.datetime`: * Pythonの`datetime.datetime`です。 * リクエストとレスポンスはISO 8601形式の`str`で表現されます: `2008-09-15T15:53:00+05:00`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/ko/docs/advanced/response-directly.md
## `Response`에서 `jsonable_encoder` 사용하기 **FastAPI**는 반환하는 `Response`에 아무런 변환을 하지 않으므로, 그 내용이 준비되어 있어야 합니다. 예를 들어, Pydantic 모델을 `dict`로 변환해 `JSONResponse`에 넣지 않으면 JSON 호환 유형으로 변환된 데이터 유형(예: `datetime`, `UUID` 등)이 사용되지 않습니다. 이러한 경우, 데이터를 응답에 전달하기 전에 `jsonable_encoder`를 사용하여 변환할 수 있습니다: ```Python hl_lines="6-7 21-22" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "기술적 세부 사항"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 30 20:00:57 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/zh/docs/advanced/response-directly.md
这种特性给你极大的可扩展性。你可以返回任何数据类型,重写任何数据声明或者校验,等等。 ## 在 `Response` 中使用 `jsonable_encoder` 由于 **FastAPI** 并未对你返回的 `Response` 做任何改变,你必须确保你已经准备好响应内容。 例如,如果不首先将 Pydantic 模型转换为 `dict`,并将所有数据类型(如 `datetime`、`UUID` 等)转换为兼容 JSON 的类型,则不能将其放入JSONResponse中。 对于这些情况,在将数据传递给响应之前,你可以使用 `jsonable_encoder` 来转换你的数据。 ```Python hl_lines="4 6 20 21" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "技术细节"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.1K bytes - Viewed (0)