- Sort Score
- Num 10 results
- Language All
Results 631 - 640 of 1,923 for json$ (0.02 seconds)
-
internal/event/name.go
return err } *name = eventName return nil } // MarshalJSON - encodes to JSON data. func (name Name) MarshalJSON() ([]byte, error) { return json.Marshal(name.String()) } // UnmarshalJSON - decodes JSON data. func (name *Name) UnmarshalJSON(data []byte) error { var s string if err := json.Unmarshal(data, &s); err != nil { return err } eventName, err := ParseName(s)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 10.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/body-fields.md
你可以在 `Field`、`Query`、`Body` 等中宣告額外資訊。這些資訊會被包含在產生的 JSON Schema 中。 你會在後續文件中學到更多關於加入額外資訊的內容,特別是在宣告範例時。 /// warning 傳入 `Field` 的額外鍵也會出現在你的應用程式所產生的 OpenAPI schema 中。 由於這些鍵不一定屬於 OpenAPI 規格的一部分,一些 OpenAPI 工具(例如 [OpenAPI 驗證器](https://validator.swagger.io/))可能無法處理你產生的 schema。 /// ## 回顧 { #recap } 你可以使用 Pydantic 的 `Field` 為模型屬性宣告額外的驗證與中繼資料。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 2.3K bytes - Click Count (0) -
tests/test_response_model_data_filter_no_inheritance.py
def test_filter_top_level_model(): response = client.post( "/users", json={"email": "******@****.***", "password": "secret"} ) assert response.json() == {"email": "******@****.***"} def test_filter_second_level_model(): response = client.get("/pets/1") assert response.json() == { "name": "Nibbler", "owner": {"email": "******@****.***"}, }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.7K bytes - Click Count (0) -
docs_src/vibe/tutorial001_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:16:24 GMT 2026 - 204 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/storage/ApiAdminStorageAction.java
// GET /api/admin/storage/list/{id} // PUT /api/admin/storage/list/{id} /** * Lists files and directories in storage. * @param id The ID of the directory to list. * @return A JSON response containing the list of files and directories. */ @Execute public JsonResponse<ApiResult> list(final OptionalThing<String> id) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 6.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/filter/LoadControlFilter.java
return false; } /** * Sends a 429 JSON response for API requests. * @param response the HTTP response * @throws IOException if an I/O error occurs */ protected void sendApiResponse(final HttpServletResponse response) throws IOException { response.setStatus(429); response.setContentType("application/json;charset=UTF-8");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Tue Feb 10 04:24:02 GMT 2026 - 4.8K bytes - Click Count (0) -
docs/es/docs/index.md
* Revisa que tiene un atributo requerido `name` que debe ser un `str`. * Revisa que tiene un atributo requerido `price` que debe ser un `float`. * Revisa que tiene un atributo opcional `is_offer`, que debe ser un `bool`, si está presente. * Todo esto también funcionaría para objetos JSON profundamente anidados. * Convertirá de y a JSON automáticamente.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 22.6K bytes - Click Count (0) -
docs/pt/docs/index.md
* Verifica que tem um atributo obrigatório `name` que deve ser `str`. * Verifica que tem um atributo obrigatório `price` que tem que ser um `float`. * Verifica que tem um atributo opcional `is_offer`, que deve ser um `bool`, se presente. * Tudo isso também funcionaria para objetos JSON profundamente aninhados. * Converter de e para JSON automaticamente.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 22.7K bytes - Click Count (0) -
tests/test_openapi_servers.py
def test_app(): response = client.get("/foo") assert response.status_code == 200, response.text def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == snapshot( { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "servers": [
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 1.7K bytes - Click Count (0) -
tests/test_security_api_key_header_optional.py
assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"msg": "Create an account first"} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.textCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.1K bytes - Click Count (0)