- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 1,587 for kjson (0.04 sec)
-
tests/test_tutorial/test_request_files/test_tutorial001_an.py
assert response.status_code == 200, response.text assert response.json() == {"filename": "test.txt"} def test_openapi_schema(): 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": { "/files/": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.5K bytes - Viewed (0) -
internal/event/target/kafka.go
Enable bool `json:"enable"` RootCAs *x509.CertPool `json:"-"` SkipVerify bool `json:"skipVerify"` ClientAuth tls.ClientAuthType `json:"clientAuth"` ClientTLSCert string `json:"clientTLSCert"` ClientTLSKey string `json:"clientTLSKey"` } `json:"tls"` SASL struct { Enable bool `json:"enable"` User string `json:"username"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 13.6K bytes - Viewed (0) -
cmd/testdata/undeleteable-object.tgz
É ýG7x§MetaSys€§MetaUsr‚¬content-typeªtext/plain¤etagÙ 4b412ab80fe1268b9de7¡v ΑÈcÑ multisitea/data/disterasure/xl3/bucket/2/77ff6859-03aa-466e-8018-c477288f1092/part.1 multisitea/data/disterasure/xl3/.minio.sys/._format.json multisitea/data/disterasure/xl3/.minio.sys/format.json {"version":"1","format":"xl","id":"88d75d7b-222c-4255-82c2-f047b5d68b9d","xl":{"version":"3","this":"507883a8-3567-4dce-b90d-08893bdaa5fb","sets":[["60b77054-b260-434a-bed2-06ef0b145994","571ec176-9a89-48b5-b30e-c71d01b9...
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 26 00:31:12 UTC 2024 - 8.7M bytes - Viewed (0) -
internal/kms/conn.go
) // MarshalText encodes the DEK's key ID and ciphertext // as JSON. func (d DEK) MarshalText() ([]byte, error) { type JSON struct { KeyID string `json:"keyid"` Version uint32 `json:"version,omitempty"` Ciphertext []byte `json:"ciphertext"` } return json.Marshal(JSON{ KeyID: d.KeyID, Version: uint32(d.Version), Ciphertext: d.Ciphertext, }) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_an.py
assert response.status_code == 200 assert response.json() == {"username": "Foo", "password": "secret"} @needs_pydanticv2 def test_post_body_extra_form(client: TestClient): response = client.post( "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"} ) assert response.status_code == 422 assert response.json() == { "detail": [ {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py
assert response.status_code == 200 assert response.json() == {"username": "Foo", "password": "secret"} @needs_pydanticv1 def test_post_body_extra_form(client: TestClient): response = client.post( "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"} ) assert response.status_code == 422 assert response.json() == { "detail": [ {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6K bytes - Viewed (0) -
docs/zh/docs/advanced/additional-responses.md
- 媒体类型的密钥,例如 `application/json` ,它包含另一个`JSON`对象作为值,该对象包含: - 一个键` schema` ,它的值是来自模型的`JSON Schema`,正确的位置在这里。 - **FastAPI**在这里添加了对OpenAPI中另一个地方的全局JSON模式的引用,而不是直接包含它。这样,其他应用程序和客户端可以直接使用这些JSON模式,提供更好的代码生成工具等。 /// **在OpenAPI中为该路径操作生成的响应将是:** ```json hl_lines="3-12" { "responses": { "404": { "description": "Additional Response", "content": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.2K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_an_py39.py
assert response.json() == {"access_token": "johndoe", "token_type": "bearer"} @needs_py39 def test_login_incorrect_password(client: TestClient): response = client.post( "/token", data={"username": "johndoe", "password": "incorrect"} ) assert response.status_code == 400, response.text assert response.json() == {"detail": "Incorrect username or password"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.4K bytes - Viewed (0) -
internal/config/policy/opa/config.go
}, } ) // Args opa general purpose policy engine configuration. type Args struct { URL *xnet.URL `json:"url"` AuthToken string `json:"authToken"` Transport http.RoundTripper `json:"-"` CloseRespFn func(r io.ReadCloser) `json:"-"` } // Validate - validate opa configuration params. func (a *Args) Validate() error {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 10 20:16:44 UTC 2024 - 5.3K bytes - Viewed (0) -
docs/pt/docs/advanced/additional-responses.md
O **FastAPI** pegará o modelo do Pydantic, gerará o `JSON Schema`, e adicionará no local correto. O local correto é: * Na chave `content`, que tem como valor um outro objeto JSON (`dict`) que contém: * Uma chave com o media type, como por exemplo `application/json`, que contém como valor um outro objeto JSON, contendo:: * Uma chave `schema`, que contém como valor o JSON Schema do modelo, sendo este o local correto.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.3K bytes - Viewed (0)