Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 796 for valid3 (0.03 sec)

  1. tests/test_tutorial/test_handling_errors/test_tutorial006.py

        assert response.json() == {
            "detail": [
                {
                    "type": "int_parsing",
                    "loc": ["path", "item_id"],
                    "msg": "Input should be a valid integer, unable to parse string as an integer",
                    "input": "foo",
                }
            ]
        }
    
    
    def test_get_http_error():
        response = client.get("/items/3")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. internal/config/compress/compress_test.go

    		success          bool
    	}{
    		// invalid input
    		{",,,", []string{}, false},
    		{"", []string{}, false},
    		{",", []string{}, false},
    		{"/", []string{}, false},
    		{"text/*,/", []string{}, false},
    
    		// valid input
    		{".txt,.log", []string{".txt", ".log"}, true},
    		{"text/*,application/json", []string{"text/*", "application/json"}, true},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.str, func(t *testing.T) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/handling-errors.md

                    "path",
                    "item_id"
                ],
                "msg": "value is not a valid integer",
                "type": "type_error.integer"
            }
        ]
    }
    ```
    
    você receberá a versão em texto:
    
    ```
    Validation errors:
    Field: ('path', 'item_id'), Error: Input should be a valid integer, unable to parse string as an integer
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/path-params.md

    ```JSON
    {
      "detail": [
        {
          "type": "int_parsing",
          "loc": [
            "path",
            "item_id"
          ],
          "msg": "Input should be a valid integer, unable to parse string as an integer",
          "input": "foo"
        }
      ]
    }
    ```
    
    because the path parameter `item_id` had a value of `"foo"`, which is not an `int`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/handling-errors.md

                    "path",
                    "item_id"
                ],
                "msg": "value is not a valid integer",
                "type": "type_error.integer"
            }
        ]
    }
    ```
    
    obtendrás una versión en texto, con:
    
    ```
    Validation errors:
    Field: ('path', 'item_id'), Error: Input should be a valid integer, unable to parse string as an integer
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                assertEquals(0, result);
            }
        }
    
        @Nested
        @DisplayName("readBytesWireFormat tests")
        class ReadBytesWireFormatTests {
    
            @Test
            @DisplayName("Should read valid structure with size 4")
            void testReadBytesWireFormatValid() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 2;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. internal/hash/crc.go

    	}
    	// If never set, just add first checksum.
    	if len(c.Raw) == 0 {
    		c.Raw = other.Raw
    		c.Encoded = other.Encoded
    		return nil
    	}
    	if !c.Valid() {
    		return fmt.Errorf("invalid base checksum")
    	}
    	if !other.Valid() {
    		return fmt.Errorf("invalid part checksum")
    	}
    
    	switch c.Type.Base() {
    	case ChecksumCRC32:
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Jan 20 14:49:07 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. docs/smb3-features/05-rdma-smb-direct-design.md

        protected final long address;
        protected volatile boolean valid;
        
        public RdmaMemoryRegion(ByteBuffer buffer, EnumSet<RdmaAccess> access) {
            this.buffer = buffer;
            this.accessFlags = access;
            this.localKey = generateLocalKey();
            this.remoteKey = generateRemoteKey();
            this.address = getBufferAddress(buffer);
            this.valid = true;
        }
        
        public ByteBuffer getBuffer() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

      @SuppressWarnings("TruthSelfEquals")
      public void testEquals() {
        // sanity check on construction of copyOfWrappedSet
        assertThat(wrappedSet).isEqualTo(copyOfWrappedSet);
    
        // test that setToTest is still valid
        assertThat(setToTest).isEqualTo(wrappedSet);
        assertThat(setToTest).isEqualTo(copyOfWrappedSet);
    
        // invalidate setToTest
        wrappedSet.remove(1);
        // sanity check on update of wrappedSet
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_handling_errors/test_tutorial005.py

        assert response.json() == {
            "detail": [
                {
                    "type": "int_parsing",
                    "loc": ["body", "size"],
                    "msg": "Input should be a valid integer, unable to parse string as an integer",
                    "input": "XL",
                }
            ],
            "body": {"title": "towel", "size": "XL"},
        }
    
    
    def test_post():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top