Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 786 for Model1 (0.03 sec)

  1. tests/test_datetime_custom_encoder.py

        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
        @app.get("/model", response_model=ModelWithDatetimeField)
        def get_model():
            return model
    
        client = TestClient(app)
        with client:
            response = client.get("/model")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 817 bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java

         * @param model the --model option value (null for absent)
         * @param plugins the --plugins option value (null for absent)
         * @param modelVersion the --model-version option value (null for absent)
         * @return configured upgrade options
         */
        public static UpgradeOptions createOptions(
                Boolean all, Boolean infer, Boolean model, Boolean plugins, String modelVersion) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. tests/test_serialize_response_dataclass.py

            Item(name="baz", date=datetime(2021, 7, 26), price=2.0, owner_ids=[1, 2, 3]),
        ]
    
    
    @app.get("/items/no-response-model/object")
    def get_no_response_model_object():
        return Item(
            name="object", date=datetime(2021, 7, 26), price=1.0, owner_ids=[1, 2, 3]
        )
    
    
    @app.get("/items/no-response-model/objectlist")
    def get_no_response_model_objectlist():
        return [
            Item(name="foo", date=datetime(2021, 7, 26)),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/resolver/MavenChainedWorkspaceReader.java

        }
    
        @Override
        public Model findModel(Artifact artifact) {
            requireNonNull(artifact, "artifact cannot be null");
            Model model = null;
    
            for (WorkspaceReader workspaceReader : readers) {
                if (workspaceReader instanceof MavenWorkspaceReader mavenWorkspaceReader) {
                    model = mavenWorkspaceReader.findModel(artifact);
                    if (model != null) {
                        break;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

    import org.apache.maven.api.VersionConstraint;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    import org.apache.maven.api.model.DependencyManagement;
    import org.apache.maven.api.model.Model;
    import org.apache.maven.api.model.Profile;
    import org.apache.maven.impl.MappedCollection;
    import org.apache.maven.impl.MappedList;
    import org.apache.maven.project.MavenProject;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Mar 24 22:23:23 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemCollector.java

     */
    package org.apache.maven.model.building;
    
    /**
     * Collects problems that are encountered during model building. The primary purpose of this component is to account for
     * the fact that the problem reporter has/should not have information about the calling context and hence cannot provide
     * an expressive source hint for the model problem. Instead, the source hint is configured by the model builder before
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. docs/es/docs/advanced/response-directly.md

    # Devolver una Response Directamente { #return-a-response-directly }
    
    Cuando creas una *path operation* en **FastAPI**, normalmente puedes devolver cualquier dato desde ella: un `dict`, una `list`, un modelo de Pydantic, un modelo de base de datos, etc.
    
    Por defecto, **FastAPI** convertiría automáticamente ese valor de retorno a JSON usando el `jsonable_encoder` explicado en [JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/StringModelSource.java

     * under the License.
     */
    package org.apache.maven.model.building;
    
    import org.apache.maven.building.StringSource;
    
    /**
     * Wraps an ordinary {@link CharSequence} as a model source.
     *
     *
     * @deprecated instead use {@link StringSource}
     */
    @Deprecated
    public class StringModelSource extends StringSource implements ModelSource {
    
        /**
         * Creates a new model source backed by the specified string.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. tests/test_query_cookie_header_model_extra_params.py

    app = FastAPI()
    
    
    class Model(BaseModel):
        param: str
    
        model_config = {"extra": "allow"}
    
    
    @app.get("/query")
    async def query_model_with_extra(data: Model = Query()):
        return data
    
    
    @app.get("/header")
    async def header_model_with_extra(data: Model = Header()):
        return data
    
    
    @app.get("/cookie")
    async def cookies_model_with_extra(data: Model = Cookie()):
        return data
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. impl/maven-core/src/test/projects/lifecycle-executor/project-with-multiple-executions/src/main/mdo/remote-resources.mdo

    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    -->
    
    <model>
      <id>remoteResourcesBundle</id>
      <name>RemoteResourcesBundle</name>
      <description>
        A bundle of remote resources.
        This is the model specification for remote-resources.xml.
      </description>
      <defaults>
        <default>
          <key>package</key>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top