- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 838 for ITEM (0.04 sec)
-
docs_src/body_fields/tutorial001_py310.py
app = FastAPI() class Item(BaseModel): name: str description: 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: 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: Fri May 13 23:38:22 UTC 2022 - 523 bytes - Viewed (0) -
docs_src/response_model/tutorial001_py39.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: list[str] = [] @app.post("/items/", response_model=Item) async def create_item(item: Item) -> Any: return item @app.get("/items/", response_model=list[Item]) async def read_items() -> Any: return [
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Jan 07 13:45:48 UTC 2023 - 556 bytes - Viewed (0) -
src/main/resources/fess_message.properties
constraints.URL.message = {item} is not a valid URL. constraints.Required.message = {item} is required. constraints.TypeInteger.message = {item} must be a number. constraints.TypeLong.message = {item} must be a number. constraints.TypeFloat.message = {item} must be a number. constraints.TypeDouble.message = {item} must be a number. constraints.TypeAny.message = {item} cannot be converted to {propertyType}. constraints.UriType.message = {item} has an unrecognized URI.Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Jul 05 02:36:47 UTC 2025 - 11.6K bytes - Viewed (0) -
src/main/resources/fess_message_en.properties
constraints.URL.message = {item} is not a valid URL. constraints.Required.message = {item} is required. constraints.TypeInteger.message = {item} must be a number. constraints.TypeLong.message = {item} must be a number. constraints.TypeFloat.message = {item} must be a number. constraints.TypeDouble.message = {item} must be a number. constraints.TypeAny.message = {item} cannot be converted to {propertyType}. constraints.UriType.message = {item} has an unrecognized URI.Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Jul 05 02:36:47 UTC 2025 - 11.5K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004_an_py39.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Annotated[ Item, Body( examples=[ { "name": "Foo",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Jul 01 16:43:29 UTC 2023 - 936 bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/index.jsp
<c:forEach var="item" varStatus="s" items="${popularWords}"> <c:if test="${s.index < 3}"> <la:link href="/search?q=${f:u(item)}${fe:facetQuery()}${fe:geoQuery()}">${f:h(item)}</la:link> </c:if> <c:if test="${3 <= s.index}"> <la:link styleClass="d-none d-sm-inline-block"Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 05:40:20 UTC 2025 - 7K bytes - Viewed (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial006.py
) assert response.status_code == 200, response.text assert response.json() == { "item_id": 123, "item": { "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2, "tags": IsList("foo", "bar", check_order=False), "images": [ {"url": "http://example.com/image.png", "name": "example image"} ],Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 8.7K bytes - Viewed (0) -
docs_src/body/tutorial002_py310.py
from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.post("/items/") async def create_item(item: Item): item_dict = item.model_dump() if item.tax is not None: price_with_tax = item.price + item.tax item_dict.update({"price_with_tax": price_with_tax})Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 447 bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial002.py
}, "summary": "Update Item", }, }, }, "components": { "schemas": { "Body_update_item_items__item_id__put": { "properties": { "item": { "$ref": "#/components/schemas/Item", }, "user": {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 11K bytes - Viewed (0) -
tests/test_custom_schema_fields.py
app = FastAPI() class Item(BaseModel): name: str description: Annotated[ Optional[str], WithJsonSchema({"type": ["string", "null"]}) ] = None model_config = { "json_schema_extra": { "x-something-internal": {"level": 4}, } } @app.get("/foo", response_model=Item) def foo(): return {"name": "Foo item"}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1.3K bytes - Viewed (0)