Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 581 - 590 of 1,140 for Model (0.02 seconds)

  1. tests/test_response_model_sub_types.py

    from pydantic import BaseModel
    
    
    class Model(BaseModel):
        name: str
    
    
    app = FastAPI()
    
    
    @app.get("/valid1", responses={"500": {"model": int}})
    def valid1():
        pass
    
    
    @app.get("/valid2", responses={"500": {"model": list[int]}})
    def valid2():
        pass
    
    
    @app.get("/valid3", responses={"500": {"model": Model}})
    def valid3():
        pass
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  2. docs/tr/docs/tutorial/sql-databases.md

    Bunları birkaç **ek model** ekleyerek düzelteceğiz. SQLModel’in parlayacağı yer de burası. ✨
    
    ### Birden Fazla Model Oluşturma { #create-multiple-models }
    
    **SQLModel**’de, `table=True` olan herhangi bir model sınıfı bir **table model**’dir.
    
    `table=True` olmayan her model sınıfı ise bir **data model**’dir; bunlar aslında sadece Pydantic modelleridir (bazı küçük ek özelliklerle). 🤓
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 16.8K bytes
    - Click Count (0)
  3. docs/ja/docs/_llm-test.md

    # LLM テストファイル { #llm-test-file }
    
    このドキュメントは、ドキュメントを翻訳する <abbr title="Large Language Model - 大規模言語モデル">LLM</abbr> が、`scripts/translate.py` の `general_prompt` と、`docs/{language code}/llm-prompt.md` の言語固有プロンプトを理解しているかをテストします。言語固有プロンプトは `general_prompt` の末尾に追加されます。
    
    ここに追加したテストは、すべての言語固有プロンプトの設計者が参照します。
    
    使い方:
    
    * 言語固有プロンプトを用意します - `docs/{language code}/llm-prompt.md`。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  4. schema/relationship_test.go

    	} else {
    		for _, rel := range relations {
    			checkSchemaRelation(t, s, rel)
    		}
    	}
    }
    
    func TestBelongsToOverrideForeignKey(t *testing.T) {
    	type Profile struct {
    		gorm.Model
    		Name string
    	}
    
    	type User struct {
    		gorm.Model
    		Profile      Profile `gorm:"ForeignKey:ProfileRefer"`
    		ProfileRefer int
    	}
    
    	checkStructRelation(t, &User{}, Relation{
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Aug 18 11:44:52 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  5. tests/associations_has_one_test.go

    	CheckUser(t, user, user)
    
    	// Find
    	var user2 User
    	DB.Find(&user2, "id = ?", user.ID)
    	DB.Model(&user2).Association("Account").Find(&user2.Account)
    	CheckUser(t, user2, user)
    
    	// Count
    	AssertAssociationCount(t, user, "Account", 1, "")
    
    	// Append
    	account := Account{Number: "account-has-one-append"}
    
    	if err := DB.Model(&user2).Association("Account").Append(&account); err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed Jun 12 10:49:45 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java

     * under the License.
     */
    package org.apache.maven.model.profile.activation;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import org.apache.maven.model.Activation;
    import org.apache.maven.model.ActivationProperty;
    import org.apache.maven.model.Profile;
    import org.apache.maven.model.building.ModelProblem.Severity;
    import org.apache.maven.model.building.ModelProblem.Version;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  7. tests/associations_test.go

    	var emptyUser User
    	var err error
    	// belongs to
    	err = DB.Model(&emptyUser).Association("Company").Delete(&user1.Company)
    	AssertEqual(t, err, gorm.ErrPrimaryKeyRequired)
    	// has many
    	err = DB.Model(&emptyUser).Association("Pets").Delete(&user1.Pets)
    	AssertEqual(t, err, gorm.ErrPrimaryKeyRequired)
    	// has one
    	err = DB.Model(&emptyUser).Association("Account").Delete(&user1.Account)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Sep 12 04:33:27 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  8. tests/test_response_model_include_exclude.py

        return Model2(
            ref=Model1(foo="simple_include model foo", bar="simple_include model bar"),
            baz="simple_include model2 baz",
        )
    
    
    @app.get(
        "/simple_include_dict",
        response_model=Model2,
        response_model_include={"baz": ..., "ref": {"foo"}},
    )
    def simple_include_dict():
        return {
            "ref": {
                "foo": "simple_include_dict model foo",
                "bar": "simple_include_dict model bar",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

    import software.amazon.awssdk.services.s3.model.ListObjectsV2Request;
    import software.amazon.awssdk.services.s3.model.ListObjectsV2Response;
    import software.amazon.awssdk.services.s3.model.NoSuchBucketException;
    import software.amazon.awssdk.services.s3.model.PutObjectRequest;
    import software.amazon.awssdk.services.s3.model.PutObjectTaggingRequest;
    import software.amazon.awssdk.services.s3.model.S3Object;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  10. docs/tr/docs/how-to/separate-openapi-schemas.md

    </div>
    
    ### Output için Model { #model-for-output }
    
    Ancak aynı modeli output olarak şöyle kullanırsanız:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py hl[19] *}
    
    ...`description` default değere sahip olduğu için, o alan için **hiçbir şey döndürmeseniz** bile yine de **o default değeri** alır.
    
    ### Output Response Verisi için Model { #model-for-output-response-data }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 15:43:38 GMT 2026
    - 4.8K bytes
    - Click Count (0)
Back to Top