Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 103 for AnyOf (0.07 seconds)

  1. tests/test_additional_properties.py

                                "loc": {
                                    "title": "Location",
                                    "type": "array",
                                    "items": {
                                        "anyOf": [{"type": "string"}, {"type": "integer"}]
                                    },
                                },
                                "msg": {"title": "Message", "type": "string"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  2. tests/test_multi_body_errors.py

                                "name": {"title": "Name", "type": "string"},
                                "age": {
                                    "title": "Age",
                                    "anyOf": [
                                        {"exclusiveMinimum": 0.0, "type": "number"},
                                        IsOneOf(
                                            # pydantic < 2.12.0
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  3. tests/test_filter_pydantic_sub_model_pv2.py

                                "name": {"title": "Name", "type": "string"},
                                "description": {
                                    "title": "Description",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                },
                                "foo": {"$ref": "#/components/schemas/ModelB"},
                                "tags": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  4. tests/test_dependency_duplicates.py

                                "loc": {
                                    "title": "Location",
                                    "type": "array",
                                    "items": {
                                        "anyOf": [{"type": "string"}, {"type": "integer"}]
                                    },
                                },
                                "msg": {"title": "Message", "type": "string"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  5. 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)
  6. tests/test_additional_responses_custom_model_in_callback.py

                                "loc": {
                                    "title": "Location",
                                    "type": "array",
                                    "items": {
                                        "anyOf": [{"type": "string"}, {"type": "integer"}]
                                    },
                                },
                                "msg": {"title": "Message", "type": "string"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  7. tests/test_repeated_parameter_alias.py

                                "input": {"title": "Input"},
                                "loc": {
                                    "items": {
                                        "anyOf": [{"type": "string"}, {"type": "integer"}]
                                    },
                                    "title": "Location",
                                    "type": "array",
                                },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  8. guava/src/com/google/common/base/CharMatcher.java

        @Override
        public String toString() {
          return "CharMatcher.anyOf(\"" + showCharacter(match1) + showCharacter(match2) + "\")";
        }
      }
    
      /** Implementation of {@link #anyOf(CharSequence)} for three or more characters. */
      private static final class AnyOf extends CharMatcher {
    
        private final char[] chars;
    
        AnyOf(CharSequence chars) {
          this.chars = chars.toString().toCharArray();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 54.4K bytes
    - Click Count (0)
  9. tests/test_extra_routes.py

                                "name": {"title": "Name", "type": "string"},
                                "price": {
                                    "title": "Price",
                                    "anyOf": [{"type": "number"}, {"type": "null"}],
                                },
                            },
                        },
                        "ValidationError": {
                            "title": "ValidationError",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  10. tests/test_param_in_path_and_dependency.py

                                "loc": {
                                    "title": "Location",
                                    "type": "array",
                                    "items": {
                                        "anyOf": [{"type": "string"}, {"type": "integer"}]
                                    },
                                },
                                "msg": {"title": "Message", "type": "string"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.6K bytes
    - Click Count (0)
Back to Top