Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 83 for AnyOf (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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_extra_examples.py

                            "parameters": [
                                {
                                    "required": False,
                                    "schema": {
                                        "anyOf": [{"type": "string"}, {"type": "null"}],
                                        "title": "Data",
                                    },
                                    "example": "query1",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                                    "type": "string",
                                },
                                "description": {
                                    "title": "Description",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                },
                                "price": {
                                    "title": "Price",
                                    "type": "number",
    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)
  4. tests/test_request_params/test_form/test_optional_list.py

        openapi = app.openapi()
        body_model_name = get_body_model_name(openapi, path)
    
        assert app.openapi()["components"]["schemas"][body_model_name] == {
            "properties": {
                "p": {
                    "anyOf": [
                        {"items": {"type": "string"}, "type": "array"},
                        {"type": "null"},
                    ],
                    "title": "P",
                },
            },
            "title": body_model_name,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  5. tests/test_openapi_separate_input_output_schemas.py

                                "description": {
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                    "title": "Description",
                                },
                                "sub": {
                                    "anyOf": [
                                        {"$ref": "#/components/schemas/SubItem-Input"},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` or `anyOf` { #union-or-anyof }
    
    You can declare a response to be the `Union` of two or more types, that means, that the response would be any of them.
    
    It will be defined in OpenAPI with `anyOf`.
    
    To do that, use the standard Python type hint [`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 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  7. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/SymbolicLinkPreservingTarIT.java

                        assertThat(entry.getLinkName(), anyOf(equalTo("../real-folder/file"), equalTo("..\\real-folder\\file")));
                        linkInFolderLinkToFileEntry = true;
                    } else if (entry.getName().equals("link-to-real-folder")) {
                        assertTrue(entry.isSymbolicLink());
                        assertThat(entry.getLinkName(), anyOf(equalTo("./real-folder"), equalTo(".\\real-folder")));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.6K bytes
    - Click Count (0)
  8. tests/test_request_params/test_header/test_optional_str.py

    def test_optional_str_schema(path: str):
        assert app.openapi()["paths"][path]["get"]["parameters"] == snapshot(
            [
                {
                    "required": False,
                    "schema": {
                        "anyOf": [{"type": "string"}, {"type": "null"}],
                        "title": "P",
                    },
                    "name": "p",
                    "in": "header",
                }
            ]
        )
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  9. tests/test_security_oauth2_optional.py

                                    "title": "Client Id",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                },
                                "client_secret": {
                                    "title": "Client Secret",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
                                },
                            },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  10. tests/test_request_params/test_file/test_optional_list.py

        openapi = app.openapi()
        body_model_name = get_body_model_name(openapi, path)
    
        assert app.openapi()["components"]["schemas"][body_model_name] == {
            "properties": {
                "p": {
                    "anyOf": [
                        {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "contentMediaType": "application/octet-stream",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 10.8K bytes
    - Click Count (0)
Back to Top