Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 544 for model2 (0.05 sec)

  1. docs/id/docs/tutorial/path-params.md

    ///
    
    /// tip | Tips
    
    "AlxexNet", "ResNet", dan "LeNet" adalah nama <abbr title="Secara teknis, arsitektur model Deep Learning">model</abbr> *Machine Learning*.
    
    ///
    
    ### Mendeklarasikan *parameter path*
    
    Kemudian buat *parameter path* dengan tipe anotasi menggunakan *class* enum dari (`ModelName`)
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/additional-responses.md

    # OPENAPI 中的其他响应
    
    您可以声明附加响应,包括附加状态代码、媒体类型、描述等。
    
    这些额外的响应将包含在OpenAPI模式中,因此它们也将出现在API文档中。
    
    但是对于那些额外的响应,你必须确保你直接返回一个像 `JSONResponse` 一样的 `Response` ,并包含你的状态代码和内容。
    
    ## `model`附加响应
    您可以向路径操作装饰器传递参数 `responses` 。
    
    它接收一个 `dict`,键是每个响应的状态代码(如`200`),值是包含每个响应信息的其他 `dict`。
    
    每个响应字典都可以有一个关键模型,其中包含一个 `Pydantic` 模型,就像 `response_model` 一样。
    
    **FastAPI**将采用该模型,生成其`JSON Schema`并将其包含在`OpenAPI`中的正确位置。
    
    例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:29:26 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tests/embedded_struct_test.go

    		if err := json.Unmarshal([]byte(str), &value); err != nil {
    			return err
    		}
    	}
    
    	*c = value
    
    	return nil
    }
    
    func TestEmbeddedScanValuer(t *testing.T) {
    	type HNPost struct {
    		gorm.Model
    		Content
    	}
    
    	DB.Migrator().DropTable(&HNPost{})
    	if err := DB.Migrator().AutoMigrate(&HNPost{}); err != nil {
    		t.Fatalf("failed to auto migrate, got error: %v", err)
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/VersionNotFoundException.java

     */
    package org.apache.maven.repository;
    
    import java.io.File;
    
    import org.apache.maven.artifact.ArtifactUtils;
    import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
    import org.apache.maven.model.Dependency;
    
    /**
     * Thrown if a dependency has an invalid version.
     *
     */
    @Deprecated
    public class VersionNotFoundException extends Exception {
        private Dependency dependency;
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/MojoExecution.java

     */
    package org.apache.maven.api;
    
    import java.util.Optional;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.model.PluginExecution;
    import org.apache.maven.api.plugin.descriptor.MojoDescriptor;
    import org.apache.maven.api.xml.XmlNode;
    
    /**
     * A {@code MojoExecution} represents a single execution of a Maven Plugin during a given build.
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Feb 28 23:54:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/cache/CacheRetention.java

         */
        PERSISTENT,
    
        /**
         * Data should be retained for the duration of the current Maven session.
         * Suitable for:
         * - Build-wide configuration
         * - Project model caching
         * - Inter-module metadata
         */
        SESSION_SCOPED,
    
        /**
         * Data should only be retained for the current build request.
         * Suitable for:
         * - Plugin execution results
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/response-change-status-code.md

    {* ../../docs_src/response_change_status_code/tutorial001.py hl[1,9,12] *}
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/oauth2-jwt.md

    Many packages that simplify it a lot have to make many compromises with the data model, database, and available features. And some of these packages that simplify things too much actually have security flaws underneath.
    
    ---
    
    **FastAPI** doesn't make any compromise with any database, data model or tool.
    
    It gives you all the flexibility to choose the ones that fit your project the best.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. tests/postgres_test.go

    		t.Errorf("No error should happen, but got %v", err)
    	}
    }
    
    func TestPostgres(t *testing.T) {
    	if DB.Dialector.Name() != "postgres" {
    		t.Skip()
    	}
    
    	type Harumph struct {
    		gorm.Model
    		Name      string         `gorm:"check:name_checker,name <> ''"`
    		Test      uuid.UUID      `gorm:"type:uuid;not null;default:gen_random_uuid()"`
    		CreatedAt time.Time      `gorm:"type:TIMESTAMP WITHOUT TIME ZONE"`
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Oct 08 09:16:32 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java

    package org.apache.maven.toolchain;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.File;
    import java.io.InputStream;
    import java.nio.file.Files;
    
    import org.apache.maven.toolchain.model.PersistedToolchains;
    import org.apache.maven.toolchain.v4.MavenToolchainsStaxReader;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top