- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 1,110 for ModelB (0.07 seconds)
-
tests/test_request_params/test_header/test_optional_list.py
class HeaderModelOptionalListStr(BaseModel): p: Optional[list[str]] = None @app.get("/model-optional-list-str") async def read_model_optional_list_str( p: Annotated[HeaderModelOptionalListStr, Header()], ): return {"p": p.p} @pytest.mark.parametrize( "path", ["/optional-list-str", "/model-optional-list-str"], ) def test_optional_list_str_schema(path: str):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 9.3K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingEvent.java
*/ package org.apache.maven.model.building; import org.apache.maven.model.Model; /** * Holds data relevant for a model building event. * * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead */ @Deprecated(since = "4.0.0") public interface ModelBuildingEvent { /** * Gets the model being built. The precise state of this model depends on the event being fired. *Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 1.7K bytes - Click Count (0) -
tests/test_request_params/test_query/test_list.py
return {"p": p} class QueryModelRequiredListStr(BaseModel): p: list[str] @app.get("/model-required-list-str") def read_model_required_list_str(p: Annotated[QueryModelRequiredListStr, Query()]): return {"p": p.p} @pytest.mark.parametrize( "path", ["/required-list-str", "/model-required-list-str"], ) def test_required_list_str_schema(path: str):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:31:34 GMT 2025 - 10.9K bytes - Click Count (0) -
docs/en/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial001_py39.py hl[8] *} You can return a `dict`, `list`, singular values as `str`, `int`, etc. You can also return Pydantic models (you'll see more about that later). There are many other objects and models that will be automatically converted to JSON (including ORMs, etc). Try using your favorite ones, it's highly probable that they are already supported.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 12.8K bytes - Click Count (0) -
tests/test_response_by_alias.py
) @app.get("/dict", response_model=Model, response_model_by_alias=False) def read_dict(): return {"alias": "Foo"} @app.get("/model", response_model=Model, response_model_by_alias=False) def read_model(): return Model(alias="Foo") @app.get("/list", response_model=list[Model], response_model_by_alias=False) def read_list(): return [{"alias": "Foo"}, {"alias": "Bar"}]
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 10.7K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java
Model out = interpolator.interpolateModel( model, new File("."), createModelBuildingRequest(context), new SimpleProblemCollector()); assertEquals(orgName + " Tools", out.getName()); } @Test public void shouldInterpolateDependencyVersionToSetSameAsProjectVersion() throws Exception { Model model = new Model(org.apache.maven.api.model.Model.newBuilder()Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Mar 30 23:08:36 GMT 2025 - 18.2K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/PluginUpgradeCliTest.java
String[] args = {"apply", "--model-version", "4.1.0", "--infer", "--model", "--plugins"}; CommonsCliUpgradeOptions options = CommonsCliUpgradeOptions.parse(args); assertTrue(options.modelVersion().isPresent(), "--model-version option should be present"); assertEquals("4.1.0", options.modelVersion().get(), "--model-version should be 4.1.0");
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Sep 29 14:48:39 GMT 2025 - 9.9K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/PerformanceTestSpec.kt
) : PerformanceTestBuildSpec, PerformanceTestProjectSpec { override fun asConfigurationId( model: CIBuildModel, bucket: String, ) = "${asConfigurationId(model)}$bucket" override fun asConfigurationId(model: CIBuildModel) = "${model.projectId}_${oldUuid ?: "PerformanceTest$uuid"}" override fun asName(): String = "${type.displayName} - ${os.asName()}"Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Feb 12 09:12:03 GMT 2025 - 3.8K bytes - Click Count (0) -
compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3ReaderEx.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.model.io.xpp3; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import org.apache.maven.model.InputSource; import org.apache.maven.model.Model; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; /** * @deprecated Use MavenStaxReader instead */
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.8K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
* under the License. */ package org.apache.maven.model.interpolation; import javax.inject.Inject; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Properties; import org.apache.maven.model.Model; import org.apache.maven.model.building.ModelBuildingRequest;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 7.9K bytes - Click Count (0)