- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 967 for Optional (0.04 sec)
-
tests/test_request_params/test_query/test_optional_str.py
p: Optional[str] = None @app.get("/model-optional-str") async def read_model_optional_str(p: Annotated[QueryModelOptionalStr, Query()]): return {"p": p.p} @pytest.mark.parametrize( "path", ["/optional-str", "/model-optional-str"], ) def test_optional_str_schema(path: str): assert app.openapi()["paths"][path]["get"]["parameters"] == [ { "required": False, "schema": {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 8.1K bytes - Viewed (0) -
tests/test_request_params/test_body/test_optional_str.py
return {"p": p} class BodyModelOptionalStr(BaseModel): p: Optional[str] = None @app.post("/model-optional-str", operation_id="model_optional_str") async def read_model_optional_str(p: BodyModelOptionalStr): return {"p": p.p} @pytest.mark.parametrize( "path", ["/optional-str", "/model-optional-str"], ) def test_optional_str_schema(path: str): openapi = app.openapi()Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 11.6K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnup/UpgradeOptions.java
* * @return an {@link Optional} containing the list of goals, or empty if not specified */ @Nonnull Optional<List<String>> goals(); /** * Returns the target POM model version for upgrades. * Supported values include "4.0.0" and "4.1.0". * * @return an {@link Optional} containing the model version, or empty if not specified */ @NonnullRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Aug 29 12:46:51 UTC 2025 - 3.6K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultEvent.java
} @Override public Optional<Project> getProject() { return Optional.ofNullable(session.getProject(delegate.getProject())); } @Override public Optional<MojoExecution> getMojoExecution() { return Optional.ofNullable(delegate.getMojoExecution()).map(me -> new DefaultMojoExecution(session, me)); } @Override public Optional<Exception> getException() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Nov 29 20:53:26 UTC 2024 - 2.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ActivationSettings.java
return of(active, optional, true); } static ActivationSettings of(final boolean active, final boolean optional, final boolean recursive) { return new ActivationSettings(active, optional, recursive); } static ActivationSettings activated() { return new ActivationSettings(true, false, true); } static ActivationSettings activatedOpt() {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 11 16:38:19 UTC 2025 - 2K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Feb 26 17:31:44 UTC 2025 - 5.7K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnenc/EncryptOptions.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 2K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java
when(options.all()).thenReturn(Optional.ofNullable(all)); when(options.infer()).thenReturn(Optional.ofNullable(infer)); when(options.model()).thenReturn(Optional.ofNullable(model)); when(options.plugins()).thenReturn(Optional.ofNullable(plugins)); when(options.modelVersion()).thenReturn(Optional.ofNullable(modelVersion)); return options; } /**
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 8.9K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenOptions.java
* @return an {@link Optional} containing the list of profile names to activate, or empty if not specified */ @Nonnull Optional<List<String>> activatedProfiles(); /** * Indicates whether Maven should suppress SNAPSHOT updates. * * @return an {@link Optional} containing true if SNAPSHOT updates should be suppressed, false if not, or empty if not specified */ @NonnullRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 8K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java
*/ @Nonnull Optional<Path> rootDirectory(); /** * Returns the input stream for the Maven execution, if running in embedded mode. * * @return an {@link Optional} containing the input stream, or empty if not applicable */ @Nonnull default Optional<InputStream> stdIn() { return Optional.ofNullable(parserRequest().stdIn()); } /**Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 6.7K bytes - Viewed (0)