Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 925 for Model (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.building;
    
    import java.io.File;
    import java.net.URI;
    import java.nio.file.Files;
    import java.nio.file.Path;
    
    import org.apache.maven.building.FileSource;
    
    /**
     * Wraps an ordinary {@link File} as a model source.
     *
     * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead
     */
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Apr 14 13:42:17 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. api/maven-api-annotations/src/main/java/org/apache/maven/api/annotations/Config.java

            /**
             * Project model properties. These properties are defined in the project's POM file (pom.xml) and
             * are read from the project model during the build. They represent build-time configuration that
             * is specific to the project and is stored with the project definition itself rather than in
             * external configuration.
             */
            MODEL
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jul 03 14:18:26 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DefaultDependencyManagementImporter.java

     */
    package org.apache.maven.model.composition;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.ArrayList;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.apache.maven.model.Dependency;
    import org.apache.maven.model.DependencyManagement;
    import org.apache.maven.model.Model;
    import org.apache.maven.model.building.ModelBuildingRequest;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  5. fastapi/utils.py

        "field (e.g. Union[Response, dict, None]) you can disable generating the "
        "response model from the type annotation with the path operation decorator "
        "parameter response_model=None. Read more: "
        "https://fastapi.tiangolo.com/tutorial/response-model/"
    )
    
    
    def create_model_field(
        name: str,
        type_: Any,
        default: Any | None = Undefined,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/body-nested-models.md

    ## Nested Models { #nested-models }
    
    Each attribute of a Pydantic model has a type.
    
    But that type can itself be another Pydantic model.
    
    So, you can declare deeply nested JSON "objects" with specific attribute names, types and validations.
    
    All that, arbitrarily nested.
    
    ### Define a submodel { #define-a-submodel }
    
    For example, we can define an `Image` model:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderRequest.java

         * a model source such as a string or input stream.
         *
         * @return an optional containing the source of the project, or empty if not specified
         */
        @Nonnull
        Optional<Source> getSource();
    
        /**
         * Determines whether a stub model should be allowed when the POM is missing or unreadable.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t01/ProjectInheritanceTest.java

        //
        // p4 inherits from p3
        // p3 inherits from p2
        // p2 inherits from p1
        // p1 inherits from p0
        // p0 inherits from super model
        //
        // or we can show it graphically as:
        //
        // p4 ---> p3 ---> p2 ---> p1 ---> p0 --> super model
        //
        // ----------------------------------------------------------------------
    
        @Test
        void testProjectInheritance() throws Exception {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue May 27 13:59:13 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  9. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/precommit/PomValidationTask.java

                MavenXpp3Reader reader = new MavenXpp3Reader();
                Model model = reader.read(fileReader);
    
                validateString("groupId", model.getGroupId());
                validateString("artifactId", model.getArtifactId());
                validateString("version", model.getVersion());
                validateString("name", model.getName());
                validateString("description", model.getDescription());
                validateString("url", model.getUrl());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.4K bytes
    - Click Count (0)
  10. compat/maven-model/src/test/java/org/apache/maven/model/ScmTest.java

        }
    
        @Test
        public void testToStringNotNonsense() {
            Scm scm = new Scm();
            scm.setConnection("scm:git:git://git.localdomain/model");
    
            String s = scm.toString();
    
            assertEquals("Scm {connection=scm:git:git://git.localdomain/model}", s);
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 1.9K bytes
    - Click Count (0)
Back to Top