- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 313 for Estr (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go
src := map[string]interface{}{ "a": nil, "b": int64(123), "c": map[string]interface{}{ "a": "b", }, "d": []interface{}{ int64(1), int64(2), }, "e": "estr", "f": true, "g": encodingjson.Number("123"), } deepCopy := runtime.DeepCopyJSON(src) assert.Equal(t, src, deepCopy) } func TestFloatIntConversion(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 22.9K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
``` The query parameter `q` is of type `Union[str, None]` (or `str | None` in Python 3.10), that means that it's of type `str` but could also be `None`, and indeed, the default value is `None`, so FastAPI will know it's not required. !!! note FastAPI will know that the value of `q` is not required because of the default value `= None`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri May 31 02:38:05 UTC 2024 - 25.8K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
``` Le paramètre de requête `q` a pour type `Union[str, None]` (ou `str | None` en Python 3.10), signifiant qu'il est de type `str` mais pourrait aussi être égal à `None`, et bien sûr, la valeur par défaut est `None`, donc **FastAPI** saura qu'il n'est pas requis. !!! note **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `= None`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Jul 27 18:53:21 UTC 2023 - 9.8K bytes - Viewed (0) -
docs/em/docs/tutorial/query-params-str-validations.md
{!> ../../../docs_src/query_params_str_validations/tutorial001_py310.py!} ``` 🔢 🔢 `q` 🆎 `Union[str, None]` (⚖️ `str | None` 🐍 3️⃣.1️⃣0️⃣), 👈 ⛓ 👈 ⚫️ 🆎 `str` ✋️ 💪 `None`, & 👐, 🔢 💲 `None`, FastAPI 🔜 💭 ⚫️ 🚫 ✔. !!! note FastAPI 🔜 💭 👈 💲 `q` 🚫 ✔ ↩️ 🔢 💲 `= None`. `Union` `Union[str, None]` 🔜 ✔ 👆 👨🎨 🤝 👆 👍 🐕🦺 & 🔍 ❌. ## 🌖 🔬
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 11.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params-str-validations.md
以下のアプリケーションを例にしてみましょう: ```Python hl_lines="9" {!../../../docs_src/query_params_str_validations/tutorial001.py!} ``` クエリパラメータ `q` は `Optional[str]` 型で、`None` を許容する `str` 型を意味しており、デフォルトは `None` です。そのため、FastAPIはそれが必須ではないと理解します。 !!! note "備考" FastAPIは、 `q` はデフォルト値が `=None` であるため、必須ではないと理解します。 `Optional[str]` における `Optional` はFastAPIには利用されませんが、エディターによるより良いサポートとエラー検出を可能にします。 ## バリデーションの追加 `q`はオプショナルですが、もし値が渡されてきた場合には、**50文字を超えないこと**を強制してみましょう。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 10.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/query-params-str-validations.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 38K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params-str-validations.md
``` Der Query-Parameter `q` hat den Typ `Union[str, None]` (oder `str | None` in Python 3.10), was bedeutet, er ist entweder ein `str` oder `None`. Der Defaultwert ist `None`, also weiß FastAPI, der Parameter ist nicht erforderlich. !!! note "Hinweis" FastAPI weiß nur dank des definierten Defaultwertes `=None`, dass der Wert von `q` nicht erforderlich ist
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 17:58:59 UTC 2024 - 27.7K bytes - Viewed (0) -
operator/pkg/validate/common.go
// get validation function for specified path func getValidationFuncForPath(validations map[string]ValidatorFunc, path util.Path) (ValidatorFunc, bool) { pstr := path.String() // fast match if !strings.Contains(pstr, "[") && !strings.Contains(pstr, "]") { vf, ok := validations[pstr] return vf, ok } for p, vf := range validations { ps := strings.Split(p, ".") if len(ps) != len(path) { continue }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 11K bytes - Viewed (0) -
operator/pkg/translate/translate_value.go
if err != nil { return err } if !found { scope.Debugf("path %s not found in helm Value.yaml tree, skip mapping.", inPath) continue } if mstr, ok := m.(string); ok && mstr == "" { scope.Debugf("path %s is empty string, skip mapping.", inPath) continue } // Zero int values are due to proto3 compiling to scalars rather than ptrs. Skip these because values of 0 are
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 08 03:52:24 UTC 2024 - 21.6K bytes - Viewed (0) -
src/go/doc/testdata/testing.go
after() } func (t *T) report() { tstr := fmt.Sprintf("(%.2f seconds)", t.duration.Seconds()) format := "--- %s: %s %s\n%s" if t.failed { fmt.Printf(format, "FAIL", t.name, tstr, t.output) } else if *chatty { fmt.Printf(format, "PASS", t.name, tstr, t.output) } } func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) { ok = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0)