Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,041 for model (0.03 sec)

  1. docs/en/docs/tutorial/request-form-models.md

    ## Check the Docs
    
    You can verify it in the docs UI at `/docs`:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Forbid Extra Form Fields
    
    In some special use cases (probably not very common), you might want to **restrict** the form fields to only those declared in the Pydantic model. And **forbid** any **extra** fields.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/encoder.md

    The same way, this database wouldn't receive a Pydantic model (an object with attributes), only a `dict`.
    
    You can use `jsonable_encoder` for that.
    
    It receives an object, like a Pydantic model, and returns a JSON compatible version:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 23:31:16 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java

            String artifactId = "maven-model";
    
            Dependency dep = new Dependency();
    
            dep.setGroupId( groupId );
            dep.setArtifactId( artifactId );
            dep.setVersion( "2.0-alpha-3" );
    
            Model model = new Model();
    
            model.addDependency( dep );
    
            MavenProject project = new MavenProject( model, repositorySystem );
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. compat/maven-model/src/test/resources/xml/pom.xml

        <version>4.0.0-alpha-1-SNAPSHOT</version>
      </parent>
    
      <artifactId>maven-model</artifactId>
    
      <name>Maven Model</name>
      <description>Model for Maven POM (Project Object Model)</description>
    
      <dependencies>
        <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-api-model</artifactId>
          <version>4.0.0-alpha-1-SNAPSHOT</version>
        </dependency>
        <dependency>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

    import java.util.List;
    import java.util.Map;
    import java.util.Properties;
    
    import org.apache.maven.model.Activation;
    import org.apache.maven.model.Profile;
    import org.apache.maven.model.building.ModelProblem;
    import org.apache.maven.model.profile.DefaultProfileActivationContext;
    import org.apache.maven.model.profile.ProfileSelector;
    import org.apache.maven.profiles.activation.ProfileActivationException;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DependencyManagementImporter.java

     */
    package org.apache.maven.model.composition;
    
    import java.util.List;
    
    import org.apache.maven.api.model.DependencyManagement;
    import org.apache.maven.api.model.Model;
    import org.apache.maven.model.building.ModelBuildingRequest;
    import org.apache.maven.model.building.ModelProblemCollector;
    
    /**
     * Handles the import of dependency management from other models into the target model.
     *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/resolution/ModelResolver.java

     * under the License.
     */
    package org.apache.maven.model.resolution;
    
    import java.util.concurrent.atomic.AtomicReference;
    
    import org.apache.maven.api.model.Dependency;
    import org.apache.maven.api.model.Parent;
    import org.apache.maven.api.model.Repository;
    import org.apache.maven.model.building.ModelSource;
    
    /**
     * Resolves a POM from its coordinates. During the build process, the
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. api/maven-api-toolchain/pom.xml

                  <version>1.2.0</version>
                  <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir>
                  <models>
                    <model>src/main/mdo/toolchains.mdo</model>
                  </models>
                  <templates>
                    <template>model.vm</template>
                  </templates>
                  <params>
                    <param>packageModelV4=org.apache.maven.api.toolchain</param>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Oct 19 18:11:20 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                @Override
                public Model getRawModel(Path from, String gId, String aId) {
                    Model model = findRawModel(from, gId, aId);
                    if (model != null) {
                        context.modelByGA.put(new GAKey(gId, aId), new Holder(model));
                        context.modelByPath.put(model.getPomPath(), new Holder(model));
                    }
                    return model;
                }
    
                @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/model/PerformanceTestSpec.kt

        override val failsStage: Boolean = true
    ) : 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 =
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 18 07:02:47 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top