Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 197 for Model (0.48 sec)

  1. tests/test_filter_pydantic_sub_model_pv2.py

                return name
    
        async def get_model_c() -> ModelC:
            return ModelC(username="test-user", password="test-password")
    
        @app.get("/model/{name}", response_model=ModelA)
        async def get_model_a(name: str, model_c=Depends(get_model_c)):
            return {"name": name, "description": "model-a-desc", "foo": model_c}
    
        client = TestClient(app)
        return client
    
    
    @needs_pydanticv2
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. maven-api-impl/src/test/java/org/apache/maven/internal/impl/model/MavenModelMergerTest.java

        @Test
        void testMergeModel_ModelVersion() {
            Model parent = Model.newBuilder().modelVersion("4.0.0").build();
            Model model = Model.newInstance();
            Model.Builder builder = Model.newBuilder(model);
            modelMerger.mergeModel_ModelVersion(builder, model, parent, false, null);
            assertNull(builder.build().getModelVersion());
    
            model = Model.newBuilder().modelVersion("5.0.0").build();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java

         *
         * @return The assembled model, never {@code null}.
         */
        @Nonnull
        Model getEffectiveModel();
    
        /**
         * Gets the specified raw model as it was read from a model source. Apart from basic validation, a raw model has not
         * undergone any updates by the model builder, e.g. reflects neither inheritance nor interpolation. The model
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileInjector.java

                    .computeIfAbsent(profiles, l -> doInjectProfiles(model, profiles));
            return result == KEY ? model : result;
        }
    
        private Model doInjectProfiles(Model model, List<Profile> profiles) {
            Model orgModel = model;
            for (Profile profile : profiles) {
                if (profile != null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ProfileInjector.java

         */
        default Model injectProfile(
                Model model, Profile profile, ModelBuilderRequest request, ModelProblemCollector problems) {
            return injectProfiles(model, List.of(profile), request, problems);
        }
    
        /**
         * Merges values from the specified profile into the given model. Implementations are expected to keep the profile
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/ModelData.java

     */
    package org.apache.maven.internal.impl.model;
    
    import org.apache.maven.api.model.Model;
    import org.apache.maven.api.services.ModelSource;
    
    /**
     * Holds a model along with some auxiliary information. This internal utility class assists the model builder during POM
     * processing by providing a means to transport information that cannot be (easily) extracted from the model itself.
     */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultDependencyManagementInjector.java

        @Override
        public Model injectManagement(Model model, ModelBuilderRequest request, ModelProblemCollector problems) {
            return merger.mergeManagedDependencies(model);
        }
    
        /**
         * ManagementModelMerger
         */
        protected static class ManagementModelMerger extends MavenModelMerger {
    
            public Model mergeManagedDependencies(Model model) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelValidator.java

         */
        void validateRawModel(Model model, ModelBuilderRequest request, ModelProblemCollector problems);
    
        /**
         * Checks the specified (effective) model for missing or invalid values. The effective model is fully assembled and
         * has undergone inheritance, interpolation and other model operations.
         *
         * @param model The model to validate, must not be {@code null}.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelPathTranslator.java

         * configuration are not processed.
         *
         * @param model The model whose paths should be resolved, may be {@code null}.
         * @param basedir The base directory to resolve relative paths against, may be {@code null}.
         * @param request The model building request that holds further settings, must not be {@code null}.
         * @since 4.0.0
         */
        Model alignToBaseDirectory(Model model, Path basedir, ModelBuilderRequest request);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. tests/test_jsonable_encoder.py

    
    def test_encode_model_with_alias_raises():
        with pytest.raises(ValidationError):
            ModelWithAlias(foo="Bar")
    
    
    def test_encode_model_with_alias():
        model = ModelWithAlias(Foo="Bar")
        assert jsonable_encoder(model) == {"Foo": "Bar"}
    
    
    def test_encode_model_with_default():
        model = ModelWithDefault(foo="foo", bar="bar")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top