- Sort Score
- Result 10 results
- Languages All
Results 1081 - 1090 of 2,210 for myitem (0.05 sec)
-
docs_src/body_fields/tutorial001_py39.py
app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item = Body(embed=True)):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 561 bytes - Viewed (0) -
docs_src/body_fields/tutorial001_an_py39.py
app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 582 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial015_an_py39.py
@app.get("/items/") async def read_items( id: Annotated[Union[str, None], AfterValidator(check_valid_id)] = None, ): if id: item = data.get(id) else: id, item = random.choice(list(data.items()))
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 01 22:02:35 UTC 2025 - 781 bytes - Viewed (0) -
tests/test_invalid_path_param.py
pass # pragma: no cover def test_invalid_dict(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: dict[str, Item]): pass # pragma: no cover def test_invalid_simple_list(): with pytest.raises(AssertionError):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
byte[] largeBuffer = new byte[10000]; FileFsSizeInformation info = new FileFsSizeInformation(); long startTime = System.nanoTime(); info.decode(largeBuffer, 0, 24); long endTime = System.nanoTime(); // Should complete quickly (under 1ms) assertTrue((endTime - startTime) < 1_000_000); } @ParameterizedTest
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
// ShortName (24 bytes) for (int i = 0; i < 24; i++) { buffer[dataOffset + 70 + i] = 0; } // FileName "test".getBytes(StandardCharsets.UTF_16LE); System.arraycopy("test".getBytes(StandardCharsets.UTF_16LE), 0, buffer, dataOffset + 94, 8); int result = response.readBytesWireFormat(buffer, bufferIndex); assertNotNull(response.getResults());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileInformation.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.internal.fscc; import jcifs.Decodable; import jcifs.Encodable; /** * Base interface for File System Control Code (FSCC) file information structures. * Defines common functionality for various SMB2/SMB3 file information classes used in * query and set file information operations, with constants for information levels. *
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.9K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/validation/ModelValidationResult.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; /** */ @Deprecated public class ModelValidationResult { /** */ private static final String LS = System.lineSeparator(); /** */ private List<String> messages; public ModelValidationResult() { messages = new ArrayList<>(); } public int getMessageCount() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 2.1K bytes - Viewed (0) -
docs_src/body_updates/tutorial001_py39.py
} @app.get("/items/{item_id}", response_model=Item) async def read_item(item_id: str): return items[item_id] @app.put("/items/{item_id}", response_model=Item) async def update_item(item_id: str, item: Item): update_item_encoded = jsonable_encoder(item) items[item_id] = update_item_encoded
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 900 bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py
response = client.get("/items/", params={"item-query": "nonregexquery"}) assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "string_pattern_mismatch", "loc": ["query", "item-query"], "msg": "String should match pattern '^fixedquery$'",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 5.8K bytes - Viewed (0)