Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 1,134 for Model (0.04 sec)

  1. tests/test_pydantic_v1_error.py

        class ResponseModelV1(BaseModel):
            name: str
    
        app = FastAPI()
    
        with pytest.raises(PydanticV1NotSupportedError):
    
            @app.get("/response-model", response_model=ResponseModelV1)
            def endpoint():  # pragma: no cover
                return {"name": "test"}
    
    
    def test_raises_pydantic_v1_model_in_additional_responses_model() -> None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. tests/scanner_valuer_test.go

    	if err := DB.Create(&data).Error; err != nil {
    		t.Errorf("Should got no error when creating data, but got %v", err)
    	}
    
    	if err := DB.Model(&data).Update("password", EncryptedData("xnewpass")).Error; err == nil {
    		t.Errorf("Should failed to update data with invalid data")
    	}
    
    	if err := DB.Model(&data).Update("password", EncryptedData("newpass")).Error; err != nil {
    		t.Errorf("Should got no error update data with valid data, but got %v", err)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.stream.Collectors;
    
    import org.apache.maven.api.model.Build;
    import org.apache.maven.api.model.Dependency;
    import org.apache.maven.api.model.Extension;
    import org.apache.maven.api.model.Parent;
    import org.apache.maven.api.model.Plugin;
    import org.apache.maven.artifact.ArtifactUtils;
    import org.apache.maven.project.Graph.Vertex;
    
    /**
     * ProjectSorter
     */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java

    @Experimental
    @Immutable
    public interface ModelBuilderRequest extends RepositoryAwareRequest {
    
        /**
         * The possible request types for building a model.
         */
        enum RequestType {
            /**
             * The request is for building an initial model from a POM file in a project on the filesystem.
             */
            BUILD_PROJECT,
            /**
             * The request is for rebuilding the effective POM in a project on the filesystem.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 07:30:49 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/project/TestProjectBuilder.java

    import java.io.File;
    import java.util.Collections;
    
    import org.apache.maven.api.services.ModelBuilder;
    import org.apache.maven.api.services.model.LifecycleBindingsInjector;
    import org.apache.maven.bridge.MavenRepositorySystem;
    import org.apache.maven.model.root.RootLocator;
    import org.eclipse.aether.RepositorySystem;
    
    @Named("classpath")
    @Singleton
    @Deprecated
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility.rules
    
    import japicmp.model.JApiClass
    import japicmp.model.JApiCompatibility
    import javassist.CtClass
    import me.champeau.gradle.japicmp.report.Violation
    
    import java.util.regex.Pattern
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 24 14:15:15 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. tests/distinct_test.go

    		AssertObjEqual(t, results[idx], expect, "Name", "Age")
    	}
    
    	var count int64
    	if err := DB.Model(&User{}).Where("name like ?", "distinct%").Count(&count).Error; err != nil || count != 5 {
    		t.Errorf("failed to query users count, got error: %v, count: %v", err, count)
    	}
    
    	if err := DB.Model(&User{}).Distinct("name").Where("name like ?", "distinct%").Count(&count).Error; err != nil || count != 3 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-multiple-params.md

    ///
    
    ## Embed a single body parameter { #embed-a-single-body-parameter }
    
    Let's say you only have a single `item` body parameter from a Pydantic model `Item`.
    
    By default, **FastAPI** will then expect its body directly.
    
    But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`:
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 12:58:04 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java

            checkGoal = new Check(orchestrator);
        }
    
        @Nested
        @DisplayName("Model Version Upgrade")
        class ModelVersionUpgradeTests {
    
            @Test
            @DisplayName("should upgrade from 4.0.0 to 4.1.0 with --model option")
            void shouldUpgradeModelVersionWith41Option() throws Exception {
                // Create a test POM with 4.0.0 model version
                Path pomFile = tempDir.resolve("pom.xml");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/ModelUtils.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.project;
    
    import java.util.List;
    
    import org.apache.maven.model.Plugin;
    import org.apache.maven.model.PluginContainer;
    
    /** @deprecated */
    @Deprecated
    public final class ModelUtils {
    
        /**
         * This should be the resulting ordering of plugins after merging:
         * <p>
         * Given:
    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