- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 1,322 for description (0.14 seconds)
-
docs_src/app_testing/app_b_an_py39/test_main.py
"/items/", headers={"X-Token": "coneofsilence"}, json={"id": "foobar", "title": "Foo Bar", "description": "The Foo Barters"}, ) assert response.status_code == 200 assert response.json() == { "id": "foobar", "title": "Foo Bar", "description": "The Foo Barters", } def test_create_item_bad_token(): response = client.post( "/items/",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Aug 15 22:31:16 GMT 2024 - 1.8K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial003.py
response = client.put( "/items/123", json={"name": "Foo", "price": 50.1, "description": "Some Foo", "tax": 0.3}, ) assert response.status_code == 200 assert response.json() == { "item_id": 123, "name": "Foo", "price": 50.1, "description": "Some Foo", "tax": 0.3, } def test_put_only_required(client: TestClient):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5.5K bytes - Click Count (0) -
tests/test_response_code_no_body.py
errors: list[Error] @app.get( "/a", status_code=204, response_class=JsonApiResponse, responses={500: {"description": "Error", "model": JsonApiError}}, ) async def a(): pass @app.get("/b", responses={204: {"description": "No Content"}}) async def b(): pass # pragma: no cover client = TestClient(app) def test_get_response():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 3.2K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/50_maintainer_chore.yml
name: Chore description: Minor issue without significant impact labels: [ "a:chore", "to-triage" ] assignees: [ ] body: - type: dropdown id: issue-type attributes: label: Issue type options: - Polishing - Deprecation - Refactoring - Other validations: required: true - type: textarea id: description attributes: label: Problem descriptionCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Sep 12 11:52:53 GMT 2023 - 856 bytes - Click Count (0) -
docs/en/docs/how-to/separate-openapi-schemas.md
{* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *} ...then the `description` field will **not be required**. Because it has a default value of `None`. ### Input Model in Docs { #input-model-in-docs } You can confirm that in the docs, the `description` field doesn't have a **red asterisk**, it's not marked as required: <div class="screenshot">Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 4.5K bytes - Click Count (0) -
internal/config/compress/help.go
Key: MimeTypes, Description: `comma separated wildcard mime-types` + defaultHelpPostfix(MimeTypes), Optional: true, Type: "csv", }, config.HelpKV{ Key: AllowEncrypted, Description: `enable 'encryption' along with compression`, Optional: true, Type: "on|off", }, config.HelpKV{ Key: config.Comment, Description: config.DefaultComment,
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Jul 17 15:43:14 GMT 2022 - 1.8K bytes - Click Count (0) -
internal/config/identity/openid/help.go
} Help = config.HelpKVS{ config.HelpKV{ Key: DisplayName, Description: "Friendly display name for this Provider/App" + defaultHelpPostfix(DisplayName), Optional: true, Type: "string", }, config.HelpKV{ Key: ConfigURL, Description: `openid discovery document e.g. "https://accounts.google.com/.well-known/openid-configuration"` + defaultHelpPostfix(ConfigURL),Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jun 23 14:45:27 GMT 2023 - 4.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java
// Test creating new element Element description = DomUtils.updateOrCreateChildElement(root, "description", "Test Description"); assertNotNull(description, "Should return created element"); xmlOutput = DomUtils.toXml(doc); assertTrue(xmlOutput.contains("<description>Test Description</description>"), "Should contain new description"); // Verify element ordering is maintainedCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 31.3K bytes - Click Count (0) -
docs_src/response_model/tutorial006_py310.py
app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float = 10.5 items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2}, "baz": { "name": "Baz", "description": "There goes my baz", "price": 50.2, "tax": 10.5, }, }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 816 bytes - Click Count (0) -
tests/test_openapi_servers.py
from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI( servers=[ {"url": "/", "description": "Default, relative server"}, { "url": "http://staging.localhost.tiangolo.com:8000", "description": "Staging but actually localhost still", }, {"url": "https://prod.example.com"}, ] ) @app.get("/foo") def foo():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 1.7K bytes - Click Count (0)