Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for uniqueItems (0.07 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. tests/test_tutorial/test_body_nested_models/test_tutorial005.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
    - 10.3K bytes
    - Click Count (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. fastapi/openapi/models.py

        minLength: int | None = Field(default=None, ge=0)
        pattern: str | None = None
        maxItems: int | None = Field(default=None, ge=0)
        minItems: int | None = Field(default=None, ge=0)
        uniqueItems: bool | None = None
        maxContains: int | None = Field(default=None, ge=0)
        minContains: int | None = Field(default=None, ge=0)
        maxProperties: int | None = Field(default=None, ge=0)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  8. tests/test_application.py

                                {
                                    "required": True,
                                    "schema": {
                                        "title": "Query",
                                        "uniqueItems": True,
                                        "type": "array",
                                        "items": {"type": "integer"},
                                    },
                                    "name": "query",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 56.9K bytes
    - Click Count (0)
  9. 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)
  10. 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)
Back to Top