Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for magic_data_reader (0.09 seconds)

  1. docs/ko/docs/advanced/path-operation-advanced-configuration.md

    이 예시에서는 어떤 Pydantic 모델도 선언하지 않았습니다. 사실 요청 바디는 JSON으로 <dfn title="bytes 같은 일반 형식에서 Python 객체로 변환">파싱</dfn>되지도 않고, `bytes`로 직접 읽습니다. 그리고 함수 `magic_data_reader()`가 어떤 방식으로든 이를 파싱하는 역할을 담당합니다.
    
    그럼에도 불구하고, 요청 바디에 대해 기대하는 스키마를 선언할 수 있습니다.
    
    ### 사용자 정의 OpenAPI 콘텐츠 타입 { #custom-openapi-content-type }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial006_py310.py hl[19:36, 39:40] *}
    
    在這個範例中,我們沒有宣告任何 Pydantic 模型。事實上,請求本文甚至不會被 <dfn title="從某種純格式(例如 bytes)轉換為 Python 物件">解析</dfn> 為 JSON,而是直接以 `bytes` 讀取,並由函式 `magic_data_reader()` 以某種方式負責解析。
    
    儘管如此,我們仍可宣告請求本文的預期結構。
    
    ### 自訂 OpenAPI Content-Type { #custom-openapi-content-type }
    
    用同樣的方法,你可以使用 Pydantic 模型來定義 JSON Schema,並把它包含到該*路徑操作*的自訂 OpenAPI 區段中。
    
    即使請求中的資料型別不是 JSON 也可以這麼做。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial006_py310.py hl[19:36, 39:40] *}
    
    在这个示例中,我们没有声明任何 Pydantic 模型。事实上,请求体甚至没有被 <dfn title="从某种纯文本格式(如字节)转换为 Python 对象">解析</dfn> 为 JSON,而是直接以 `bytes` 读取,并由函数 `magic_data_reader()` 以某种方式负责解析。
    
    尽管如此,我们仍然可以声明请求体的预期方案。
    
    ### 自定义 OpenAPI 内容类型 { #custom-openapi-content-type }
    
    使用同样的技巧,你可以用一个 Pydantic 模型来定义 JSON Schema,然后把它包含到该 *路径操作* 的自定义 OpenAPI 方案部分中。
    
    即使请求中的数据类型不是 JSON,你也可以这样做。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  4. docs/ja/docs/advanced/path-operation-advanced-configuration.md

    この例では、Pydanticモデルを一切宣言していません。実際、リクエストボディはJSONとして <dfn title="bytes などのプレーンな形式から Python オブジェクトに変換される">パース</dfn> されず、直接 `bytes` として読み取られます。そして `magic_data_reader()` 関数が、何らかの方法でそれをパースする責務を担います。
    
    それでも、リクエストボディに期待されるスキーマを宣言できます。
    
    ### カスタムOpenAPI content type { #custom-openapi-content-type }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  5. docs/uk/docs/advanced/path-operation-advanced-configuration.md

    Водночас ми можемо оголосити очікувану схему для тіла запиту.
    
    ### Власний тип вмісту OpenAPI { #custom-openapi-content-type }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  6. docs/tr/docs/advanced/path-operation-advanced-configuration.md

    Bu örnekte herhangi bir Pydantic model tanımlamadık. Hatta request body JSON olarak <dfn title="bytes gibi düz bir formattan, ör. bytes, Python nesnelerine dönüştürme">ayrıştırılmıyor</dfn>; doğrudan `bytes` olarak okunuyor ve `magic_data_reader()` fonksiyonu bunu bir şekilde parse etmekten sorumlu oluyor.
    
    Buna rağmen, request body için beklenen şemayı tanımlayabiliriz.
    
    ### Özel OpenAPI content type { #custom-openapi-content-type }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  7. docs/de/docs/advanced/path-operation-advanced-configuration.md

    Dennoch können wir das zu erwartende Schema für den Requestbody deklarieren.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  8. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Sin embargo, podemos declarar el esquema esperado para el request body.
    
    ### Tipo de contenido personalizado de OpenAPI { #custom-openapi-content-type }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  9. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    Néanmoins, nous pouvons déclarer le schéma attendu pour le corps de la requête.
    
    ### Type de contenu OpenAPI personnalisé { #custom-openapi-content-type }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 8K bytes
    - Click Count (0)
  10. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    De toda forma, nós podemos declarar o esquema esperado para o corpo da requisição.
    
    ### Tipo de conteúdo do OpenAPI personalizado { #custom-openapi-content-type }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.8K bytes
    - Click Count (0)
Back to Top