- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 368 for valid4 (0.08 sec)
-
docs/pt/docs/tutorial/body-nested-models.md
``` A string será verificada para se tornar uma URL válida e documentada no esquema JSON/1OpenAPI como tal. ## Atributos como listas de submodelos Você também pode usar modelos Pydantic como subtipos de `list`, `set`, etc: ```Python hl_lines="20" {!../../docs_src/body_nested_models/tutorial006.py!} ``` Isso vai esperar(converter, validar, documentar, etc) um corpo JSON tal qual: ```JSON hl_lines="11"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.4K bytes - Viewed (0) -
docs/fr/docs/features.md
* Valide les **structures complexes**: * Utilise les modèles hiérarchique de Pydantic, le `typage` Python pour les `Lists`, `Dict`, etc. * Et les validateurs permettent aux schémas de données complexes d'être clairement et facilement définis, validés et documentés sous forme d'un schéma JSON.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 11.1K bytes - Viewed (0) -
internal/config/identity/ldap/ldap.go
} return bindDN, nil } // Since the username parses as a valid DN, check that it exists and is // under a configured base DN in the LDAP directory. validDN, isUnderBaseDN, err := l.GetValidatedUserDN(conn, username) if err == nil && !isUnderBaseDN { // Not under any configured base DN, so treat as not found. return nil, nil } return validDN, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 01:04:53 UTC 2024 - 12.4K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
```Python q: Union[str, None] = Query(default=None, max_length=50) ``` Cela va valider les données, montrer une erreur claire si ces dernières ne sont pas valides, et documenter le paramètre dans le schéma `OpenAPI` de cette *path operation*. ## Rajouter plus de validation Vous pouvez aussi rajouter un second paramètre `min_length` :
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 17:14:38 UTC 2024 - 9.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params-str-validations.md
```Python hl_lines="7" {!../../docs_src/query_params_str_validations/tutorial013.py!} ``` /// note | "Observação" Tenha em mente que neste caso, o FastAPI não irá validar os conteúdos da lista. Por exemplo, um `List[int]` iria validar (e documentar) que os contéudos da lista são números inteiros. Mas apenas `list` não. /// ## Declarando mais metadados Você pode adicionar mais informações sobre o parâmetro.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.3K bytes - Viewed (0) -
istioctl/pkg/validate/validate_test.go
valid: false, }, { name: "port name missing service", in: portNameMissingSvc, valid: false, }, { name: "version label missing deployment", in: versionLabelMissingDeployment, valid: true, }, { name: "valid port naming service", in: validPortNamingSvc, valid: true, }, { name: "valid port naming with suffix service",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 02 16:18:14 UTC 2024 - 21.4K bytes - Viewed (0) -
cni/test/install_k8s_test.go
expectedPostCleanFile: testDataDir + "/expected/minikube_cni.conflist.clean", cniConfDirOrderedFiles: []string{"minikube_cni.conf", "calico.conflist"}, }, { name: "Skip non-json file for first valid .conf file", chainedCNIPlugin: true, resultFileName: "01-minikube_cni.conflist", expectedOutputFile: testDataDir + "/expected/minikube_cni.conflist.expected",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 23:59:49 UTC 2024 - 7.9K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
func TestProcessAddEventGoodPayload(t *testing.T) { valid := CNIPluginAddEvent{ Netns: "/var/netns/foo", PodName: "pod-bingo", PodNamespace: "funkyns", } payload, _ := json.Marshal(valid) addEvent, err := processAddEvent(payload) assert.NoError(t, err) assert.Equal(t, valid, addEvent) } func TestProcessAddEventBadPayload(t *testing.T) { valid := CNIPluginAddEvent{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0) -
internal/jwt/parser.go
func (c *StandardClaims) SetAccessKey(accessKey string) { c.Subject = accessKey c.AccessKey = accessKey } // Valid - implements https://godoc.org/github.com/golang-jwt/jwt#Claims compatible // claims interface, additionally validates "accessKey" fields. func (c *StandardClaims) Valid() error { if err := c.StandardClaims.Valid(); err != nil { return err } if c.AccessKey == "" && c.Subject == "" {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 17 16:45:46 UTC 2024 - 14.1K bytes - Viewed (0) -
internal/bucket/object/lock/lock.go
const ( // RetGovernance - governance mode. RetGovernance RetMode = "GOVERNANCE" // RetCompliance - compliance mode. RetCompliance RetMode = "COMPLIANCE" ) // Valid - returns if retention mode is valid func (r RetMode) Valid() bool { switch r { case RetGovernance, RetCompliance: return true } return false } func parseRetMode(modeStr string) (mode RetMode) { switch strings.ToUpper(modeStr) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0)