Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for uniqueItems (0.06 seconds)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

    from ...utils import needs_py310
    
    UNTYPED_LIST_SCHEMA = {"type": "array", "items": {}}
    
    LIST_OF_STR_SCHEMA = {"type": "array", "items": {"type": "string"}}
    
    SET_OF_STR_SCHEMA = {"type": "array", "items": {"type": "string"}, "uniqueItems": True}
    
    
    @pytest.fixture(
        name="mod_name",
        params=[
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial002_py310", marks=needs_py310),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/extra-data-types.md

            * In responses, the `set` will be converted to a `list`.
            * The generated schema will specify that the `set` values are unique (using JSON Schema's `uniqueItems`).
    * `bytes`:
        * Standard Python `bytes`.
        * In requests and responses will be treated as `str`.
        * The generated schema will specify that it's a `str` with `binary` "format".
    * `Decimal`:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/extra-data-types.md

    * `frozenset`:
        * 在請求與回應中與 `set` 相同處理:
            * 在請求中,會讀取一個 list,去除重複並轉為 `set`。
            * 在回應中,`set` 會被轉為 `list`。
            * 生成的 schema 會指定 `set` 的值為唯一(使用 JSON Schema 的 `uniqueItems`)。
    * `bytes`:
        * 標準的 Python `bytes`。
        * 在請求與回應中會被當作 `str` 處理。
        * 生成的 schema 會指定其為 `str`,且 "format" 為 `binary`。
    * `Decimal`:
        * 標準的 Python `Decimal`。
        * 在請求與回應中,與 `float` 的處理方式相同。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/extra-data-types.md

    * `frozenset`:
        * 在请求和响应中,作为 `set` 对待:
            * 在请求中,列表将被读取,消除重复,并将其转换为一个 `set`。
            * 在响应中 `set` 将被转换为 `list` 。
            * 产生的模式将指定那些 `set` 的值是唯一的 (使用 JSON Schema 的 `uniqueItems`)。
    * `bytes`:
        * 标准的 Python `bytes`。
        * 在请求和响应中被当作 `str` 处理。
        * 生成的模式将指定这个 `str` 是 `binary` "格式"。
    * `Decimal`:
        * 标准的 Python `Decimal`。
        * 在请求和响应中被当做 `float` 一样处理。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

                                    "default": [],
                                    "type": "array",
                                    "items": {"type": "string"},
                                    "uniqueItems": True,
                                },
                                "image": {
                                    "anyOf": [
                                        {"$ref": "#/components/schemas/Image"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  6. docs/tr/docs/tutorial/extra-data-types.md

            * request'lerde bir list okunur, tekrarlar kaldırılır ve `set`'e dönüştürülür.
            * response'larda `set`, `list`'e dönüştürülür.
            * Üretilen schema, `set` değerlerinin benzersiz olduğunu belirtir (JSON Schema'nın `uniqueItems` özelliğini kullanarak).
    * `bytes`:
        * Standart Python `bytes`.
        * request'lerde ve response'larda `str` gibi ele alınır.
        * Üretilen schema, bunun `binary` "format"ına sahip bir `str` olduğunu belirtir.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/extra-data-types.md

            * Bei Responses wird das `set` in eine `list` umgewandelt.
            * Das generierte Schema zeigt an, dass die `set`-Werte eindeutig sind (unter Verwendung von JSON Schemas `uniqueItems`).
    * `bytes`:
        * Standard-Python-`bytes`.
        * In Requests und Responses werden sie als `str` behandelt.
        * Das generierte Schema wird anzeigen, dass es sich um einen `str` mit `binary` „Format“ handelt.
    * `Decimal`:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/extra-data-types.md

            * Dans les réponses, le `set` sera converti en `list`.
            * Le schéma généré indiquera que les valeurs du `set` sont uniques (en utilisant `uniqueItems` de JSON Schema).
    * `bytes` :
        * `bytes` Python standard.
        * Dans les requêtes et les réponses, traité comme une `str`.
        * Le schéma généré indiquera qu'il s'agit d'une `str` avec le « format » `binary`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/extra-data-types.md

    * `frozenset`:
        * 요청과 응답에서 `set`와 동일하게 취급됩니다:
            * 요청 시, 리스트를 읽어 중복을 제거하고 `set`로 변환합니다.
            * 응답 시, `set`는 `list`로 변환됩니다.
            * 생성된 스키마는 (JSON 스키마의 `uniqueItems`를 이용해) `set`의 값이 고유함을 명시합니다.
    * `bytes`:
        * 표준 파이썬의 `bytes`.
        * 요청과 응답에서 `str`로 취급됩니다.
        * 생성된 스키마는 이것이 `binary` "형식"의 `str`임을 명시합니다.
    * `Decimal`:
        * 표준 파이썬의 `Decimal`.
        * 요청과 응답에서 `float`와 동일하게 다뤄집니다.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/extra-data-types.md

            * В ответах `set` будет преобразован в `list`.
            * В сгенерированной схеме будет указано, что значения `set` уникальны (с помощью JSON-схемы `uniqueItems`).
    * `bytes`:
        * Встроенный в Python `bytes`.
        * В запросах и ответах будет рассматриваться как `str`.
        * В сгенерированной схеме будет указано, что это `str` в формате `binary`.
    * `Decimal`:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 4.3K bytes
    - Click Count (0)
Back to Top