- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 239 for Schemas (0.05 seconds)
-
tests/test_schema_compat_pydantic_v2.py
"schema": {"$ref": "#/components/schemas/User"} } }, } }, } } }, "components": { "schemas": IsOneOf( # Pydantic >= 2.11: no top-level OtherRoleCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 12:36:49 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/zh/docs/advanced/additional-responses.md
* 一个媒体类型作为键,例如 `application/json`,它的值是另一个 JSON 对象,该对象包含: * 一个键 `schema`,它的值是来自该模型的 JSON Schema,这里就是正确的位置。 * **FastAPI** 会在这里添加一个引用,指向你 OpenAPI 中另一个位置的全局 JSON Schemas,而不是直接内联。这样,其他应用和客户端可以直接使用这些 JSON Schemas,提供更好的代码生成工具等。 /// 为该*路径操作*在 OpenAPI 中生成的响应将是: ```JSON hl_lines="3-12" { "responses": { "404": { "description": "Additional Response", "content": {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 8.7K bytes - Click Count (0) -
docs/ja/docs/advanced/additional-responses.md
"schema": { "$ref": "#/components/schemas/Message" } } } }, "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item" }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 10K bytes - Click Count (0) -
docs/en/docs/advanced/vibe.md
{* ../../docs_src/vibe/tutorial001_py310.py hl[8:12] *} ## Benefits { #benefits } By using `@app.vibe()`, you get to enjoy: * **Freedom**: No data validation. No schemas. No constraints. Just vibes. ✨ * **Flexibility**: The request can be anything. The response can be anything. Who needs types anyway?Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:16:24 GMT 2026 - 2K bytes - Click Count (0) -
docs/ja/docs/tutorial/schema-extra-example.md
この古いOpenAPI固有の`examples`パラメータは、FastAPI `0.103.0`以降は`openapi_examples`になりました。 /// ### JSON Schemaの`examples`フィールド { #json-schemas-examples-field } しかしその後、JSON Schemaは新しいバージョンの仕様に[`examples`](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.5)フィールドを追加しました。 そして、新しいOpenAPI 3.1.0は、この新しいフィールド`examples`を含む最新バージョン(JSON Schema 2020-12)に基づくようになりました。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 10.5K bytes - Click Count (0) -
docs/pt/docs/tutorial/first-steps.md
Esta definição de *schema* inclui os paths da sua API, os parâmetros possíveis que eles usam, etc. #### "*Schema*" de dados { #data-schema } O termo "*schema*" também pode se referir à forma de alguns dados, como um conteúdo JSON. Nesse caso, significaria os atributos JSON e os tipos de dados que eles possuem, etc. #### OpenAPI e JSON Schema { #openapi-and-json-schema }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 14.2K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/schema-extra-example.md
/// ### JSON Schema 的 `examples` 欄位 { #json-schemas-examples-field } 後來 JSON Schema 在新版本規範中新增了 [`examples`](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.5) 欄位。 接著新的 OpenAPI 3.1.0 以最新版本(JSON Schema 2020-12)為基礎,該版本就包含這個新的 `examples` 欄位。 現在這個新的 `examples` 欄位優先於舊的單一(且客製)`example` 欄位,後者已被棄用。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 8.4K bytes - Click Count (0) -
docs/zh-hant/docs/alternatives.md
### [Pydantic](https://docs.pydantic.dev/) { #pydantic } Pydantic 是基於 Python 型別提示,定義資料驗證、序列化與文件(使用 JSON Schema)的函式庫。 這讓它非常直覺。 它可與 Marshmallow 相提並論。儘管在效能測試中它比 Marshmallow 更快。而且因為它基於相同的 Python 型別提示,編輯器支援也很出色。 /// check | **FastAPI** 用於 處理所有資料驗證、資料序列化與自動模型文件(基於 JSON Schema)。 **FastAPI** 接著會把這些 JSON Schema 資料放入 OpenAPI 中,此外還有其他許多功能。 /// ### [Starlette](https://www.starlette.dev/) { #starlette }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 20K bytes - Click Count (0) -
schema/schema.go
cacheStore *sync.Map } func (schema *Schema) String() string { if schema.ModelType.Name() == "" { return fmt.Sprintf("%s(%s)", schema.Name, schema.Table) } return fmt.Sprintf("%s.%s", schema.ModelType.PkgPath(), schema.ModelType.Name()) } func (schema *Schema) MakeSlice() reflect.Value { slice := reflect.MakeSlice(reflect.SliceOf(reflect.PointerTo(schema.ModelType)), 0, 20) results := reflect.New(slice.Type())
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 13.3K bytes - Click Count (0) -
docs/ko/docs/advanced/generate-clients.md
*경로 처리*에서 요청 페이로드와 응답 페이로드에 사용하는 모델을 `Item`, `ResponseMessage` 모델로 정의하고 있다는 점에 주목하세요. ### API 문서 { #api-docs } `/docs`로 이동하면, 요청으로 보낼 데이터와 응답으로 받을 데이터에 대한 **스키마(schemas)**가 있는 것을 볼 수 있습니다: <img src="/img/tutorial/generate-clients/image01.png"> 이 스키마는 앱에서 모델로 선언되었기 때문에 볼 수 있습니다. 그 정보는 앱의 **OpenAPI 스키마**에서 사용할 수 있고, 이후 API 문서에 표시됩니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 11K bytes - Click Count (0)