- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 64 for declaring (0.06 sec)
-
docs/en/docs/advanced/additional-responses.md
You can use this same `responses` parameter to add different media types for the same main response. For example, you can add an additional media type of `image/png`, declaring that your *path operation* can return a JSON object (with media type `application/json`) or a PNG image: {* ../../docs_src/additional_responses/tutorial002.py hl[19:24,28] *} /// note
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.9K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
Because all the **fields actually change** (the type now includes `None` and they now have a default value of `None`), we need to **re-declare** them. We don't really need to inherit from `HeroBase` because we are re-declaring all the fields. I'll leave it inheriting just for consistency, but this is not necessary. It's more a matter of personal taste. 🤷 The fields of `HeroUpdate` are: * `name` * `age` * `secret_name`
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 15.4K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/index.md
current_user --> public active_user --> private admin_user --> activate_user paying_user --> pro_items ``` ## Integrated with **OpenAPI** { #integrated-with-openapi_1 } All these dependencies, while declaring their requirements, also add parameters, validations, etc. to your *path operations*.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.6K bytes - Viewed (0) -
docs/en/docs/tutorial/schema-extra-example.md
Now, as Swagger UI didn't support multiple JSON Schema examples (as of 2023-08-26), users didn't have a way to show multiple examples in the docs. To solve that, FastAPI `0.103.0` **added support** for declaring the same old **OpenAPI-specific** `examples` field with the new parameter `openapi_examples`. 🤓 ### Summary { #summary }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
/* * These classes handle null properly but throw IllegalArgumentException for the default * Class argument that this test uses. Normally we'd fix that by declaring a * ReflectionFreeAssertThrowsTest with a testNulls method, but that's annoying to have to do * for a package-private utility class. So we skip the class entirely instead. */ continue;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
## Return the same input data { #return-the-same-input-data } Here we are declaring a `UserIn` model, it will contain a plaintext password: {* ../../docs_src/response_model/tutorial002_py310.py hl[7,9] *} /// info
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 16K bytes - Viewed (0) -
docs/en/docs/alternatives.md
It used custom types in its declarations instead of standard Python types, but it was still a huge step forward. It also was one of the first frameworks to generate a custom schema declaring the whole API in JSON. It was not based on a standard like OpenAPI and JSON Schema. So it wouldn't be straightforward to integrate it with other tools, like Swagger UI. But again, it was a very innovative idea.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 23.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
* href="https://github.com/lukas-krecan/future-converter">Future Converter</a>.) * * <h3>Extension</h3> * * If you want a class like {@code FluentFuture} but with extra methods, we recommend declaring your * own subclass of {@link ListenableFuture}, complete with a method like {@link #from} to adapt an * existing {@code ListenableFuture}, implemented atop a {@link ForwardingListenableFuture} that
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
} } /** * Thrown if the test fails to generate two distinct non-null values of a constructor or factory * parameter in order to test {@link Object#equals} and {@link Object#hashCode} of the declaring * class. */ @VisibleForTesting static final class ParameterHasNoDistinctValueException extends Exception { ParameterHasNoDistinctValueException(Parameter parameter) { super(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java
* its own.) */ /** A special value to represent {@code null}. */ static final Object NULL = new Object(); /* * Despite declaring this field in AbstractFutureState, we still use the logger for * AbstractFuture: Users may have tests or log configuration that expects that to be the logger * used for exceptions from listeners, as it's been in the past.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 33.2K bytes - Viewed (0)