Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for AnyOf (0.37 seconds)

  1. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertToStringWorks(CharMatcher.anyOf(""), "CharMatcher.none()");
        assertToStringWorks(CharMatcher.anyOf("1"), "CharMatcher.is('\\u0031')");
        assertToStringWorks(CharMatcher.isNot('1'), "CharMatcher.isNot('\\u0031')");
        assertToStringWorks(CharMatcher.anyOf("12"), "CharMatcher.anyOf(\"\\u0031\\u0032\")");
        assertToStringWorks(CharMatcher.anyOf("321"), "CharMatcher.anyOf(\"\\u0031\\u0032\\u0033\")");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  2. tests/test_schema_compat_pydantic_v2.py

                                "properties": {
                                    "username": {"type": "string", "title": "Username"},
                                    "role": {
                                        "anyOf": [
                                            {"$ref": "#/components/schemas/PlatformRole"},
                                            {"enum": [], "title": "OtherRole"},
                                        ],
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/extra-models.md

    如此一來,我們只需要宣告模型之間的差異(含明文 `password`、含 `hashed_password`、或不含密碼):
    
    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` 或 `anyOf` { #union-or-anyof }
    
    你可以將回應宣告為多個型別的 `Union`,表示回應可能是其中任一型別。
    
    在 OpenAPI 中會以 `anyOf` 定義。
    
    要達成這點,使用標準的 Python 型別提示 [`typing.Union`](https://docs.python.org/3/library/typing.html#typing.Union):
    
    /// note
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  4. fastapi/openapi/models.py

        # Ref: JSON Schema 2020-12: https://json-schema.org/draft/2020-12/json-schema-core.html#name-a-vocabulary-for-applying-s
        # A Vocabulary for Applying Subschemas
        allOf: list["SchemaOrBool"] | None = None
        anyOf: list["SchemaOrBool"] | None = None
        oneOf: list["SchemaOrBool"] | None = None
        not_: Optional["SchemaOrBool"] = Field(default=None, alias="not")
        if_: Optional["SchemaOrBool"] = Field(default=None, alias="if")
    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)
  5. fastapi/openapi/utils.py

    validation_error_definition = {
        "title": "ValidationError",
        "type": "object",
        "properties": {
            "loc": {
                "title": "Location",
                "type": "array",
                "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
            },
            "msg": {"title": "Message", "type": "string"},
            "type": {"title": "Error Type", "type": "string"},
            "input": {"title": "Input"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  6. docs/uk/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` або `anyOf` { #union-or-anyof }
    
    Ви можете оголосити відповідь як `Union` двох або більше типів - це означає, що відповідь може бути будь-якого з них.
    
    В OpenAPI це буде визначено як `anyOf`.
    
    Для цього використайте стандартну підказку типу Python [`typing.Union`](https://docs.python.org/3/library/typing.html#typing.Union):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` ou `anyOf` { #union-or-anyof }
    
    Vous pouvez déclarer qu'une réponse est l'`Union` de deux types ou plus, ce qui signifie que la réponse peut être n'importe lequel d'entre eux.
    
    Cela sera défini dans OpenAPI avec `anyOf`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/extra-models.md

    这样,就可以仅声明模型之间的差异部分(具有明文的 `password`、具有 `hashed_password` 以及不包括密码):
    
    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` 或 `anyOf` { #union-or-anyof }
    
    响应可以声明为两个或多个类型的 `Union`,即该响应可以是这些类型中的任意一种。
    
    在 OpenAPI 中会用 `anyOf` 表示。
    
    为此,请使用 Python 标准类型提示 [`typing.Union`](https://docs.python.org/3/library/typing.html#typing.Union):
    
    /// note | 注意
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  9. docs/tr/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` veya `anyOf` { #union-or-anyof }
    
    Bir response'u iki ya da daha fazla type'ın `Union`'ı olarak tanımlayabilirsiniz; bu, response'un bunlardan herhangi biri olabileceği anlamına gelir.
    
    OpenAPI'de bu `anyOf` ile tanımlanır.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` или `anyOf` { #union-or-anyof }
    
    Вы можете объявить HTTP-ответ как `Union` из двух или более типов. Это означает, что HTTP-ответ может быть любым из них.
    
    Он будет определён в OpenAPI как `anyOf`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 10.7K bytes
    - Click Count (0)
Back to Top