Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for list_type (0.04 sec)

  1. tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py

        response = client.post("/", json={"numbers": [1, 2, 3]})
        assert response.json() == {
            "detail": {
                "errors": [
                    {
                        "type": "list_type",
                        "loc": ["body"],
                        "msg": "Input should be a valid list",
                        "input": {"numbers": [1, 2, 3]},
                    }
                ],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

                        "url": "http://example.com/image.png",
                        "name": "example image",
                    },
                    "msg": "Input should be a valid list",
                    "type": "list_type",
                },
            ]
        }
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_nested_models/test_tutorial008.py

                    "input": {
                        "name": "Example",
                        "url": "http://example.com/",
                    },
                    "msg": "Input should be a valid list",
                    "type": "list_type",
                }
            ]
        }
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. tests/test_typing_python39.py

            set[int]: [1, 2, 3],  # `set` is converted to `list`
            tuple[int, ...]: [1, 2, 3],  # `tuple` is converted to `list`
        }
        for test_type, expect in types.items():
            app = FastAPI()
    
            @app.post("/", response_model=test_type)
            def post_endpoint(input: test_type):
                return input
    
            res = TestClient(app).post("/", json=expect)
            assert res.status_code == 200, res.json()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 709 bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK);
            assertTrue(info.equals(info));
        }
    
        @Test
        @DisplayName("Test equals method with different object type")
        void testEqualsWithDifferentObjectType() {
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK);
            assertFalse(info.equals("Not a SmbShareInfo"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

         */
        public void testList() throws Exception {
            final Method m1 = ListType.class.getMethod("listOfString");
            final Type t1 = m1.getGenericReturnType();
            assertThat(GenericsUtil.isTypeOf(t1, List.class), is(true));
            assertThat(GenericsUtil.getElementTypeOfList(t1), is(sameClass(String.class)));
    
            final Method m2 = ListType.class.getMethod("listOfClass");
            final Type t2 = m2.getGenericReturnType();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/util/MimeMap.java

                        break;
                    }
                    if (ch == '#') {
                        state = ST_COMM;
                        break;
                    }
                    state = ST_TYPE;
                case ST_TYPE:
                    if (ch == ' ' || ch == '\t') {
                        state = ST_GAP;
                    } else {
                        type[t++] = ch;
                    }
                    break;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/supplemental-model.mdo

          <name>SupplementalDataModel</name>
          <version>1.0.0</version>
          <description>Root element of the supplemental-models.xml file.</description>
          <fields>
            <field xml.listStyle="flat">
              <name>supplement</name>
              <version>1.0.0</version>
              <description>Snippets of POM xml files used to supplement the data model.</description>
              <association>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

            final int listType = url.getHost().length() == 0 ? 0 : getType();
            SmbComTransaction req;
            SmbComTransactionResponse resp;
    
            if (listType == 0) {
                connect0();
                req = new NetServerEnum2(tree.session.transport.server.oemDomainName, NetServerEnum2.SV_TYPE_DOMAIN_ENUM);
            } else if (listType == TYPE_WORKGROUP) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
Back to top