Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 103 for anyOf (0.02 seconds)

  1. tests/test_tutorial/test_body_updates/test_tutorial001.py

                            "properties": {
                                "name": {
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                    "title": "Name",
                                },
                                "description": {
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                    "title": "Description",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

                                    "title": "Description",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                },
                                "price": {"title": "Price", "type": "number"},
                                "tax": {
                                    "title": "Tax",
                                    "anyOf": [{"type": "number"}, {"type": "null"}],
                                },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_additional_responses/test_tutorial002.py

                                },
                                {
                                    "required": False,
                                    "schema": {
                                        "anyOf": [{"type": "boolean"}, {"type": "null"}],
                                        "title": "Img",
                                    },
                                    "name": "img",
                                    "in": "query",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

                                    "title": "Description",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                },
                                "price": {"title": "Price", "type": "number"},
                                "tax": {
                                    "title": "Tax",
                                    "anyOf": [{"type": "number"}, {"type": "null"}],
                                },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_additional_responses/test_tutorial004.py

                                },
                                {
                                    "required": False,
                                    "schema": {
                                        "anyOf": [{"type": "boolean"}, {"type": "null"}],
                                        "title": "Img",
                                    },
                                    "name": "img",
                                    "in": "query",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  6. tests/test_additional_responses_union_duplicate_anyof.py

    """
    Regression test: Ensure app-level responses with Union models and content/examples
    don't accumulate duplicate $ref entries in anyOf arrays.
    See https://github.com/fastapi/fastapi/pull/14463
    """
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    
    class ModelA(BaseModel):
        a: str
    
    
    class ModelB(BaseModel):
        b: str
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/base/BenchmarkHelpers.java

                .or(CharMatcher.inRange('A', 'Z'))
                .or(CharMatcher.anyOf("äöüßÄÖÜ")),
            "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZäöüßÄÖÜ");
    
        public final CharMatcher matcher;
        public final String matchingChars;
    
        SampleMatcherConfig(String matchingChars) {
          this(CharMatcher.anyOf(matchingChars), matchingChars);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  8. 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)
  9. tests/test_generate_unique_id_function.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
    - 75K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_body_fields/test_tutorial001.py

                                "name": {"title": "Name", "type": "string"},
                                "description": {
                                    "title": "The description of the item",
                                    "anyOf": [
                                        {"maxLength": 300, "type": "string"},
                                        {"type": "null"},
                                    ],
                                },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 6.9K bytes
    - Click Count (0)
Back to Top