Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 1,134 for Model (0.38 sec)

  1. docs/en/docs/tutorial/encoder.md

    The same way, this database wouldn't receive a Pydantic model (an object with attributes), only a `dict`.
    
    You can use `jsonable_encoder` for that.
    
    It receives an object, like a Pydantic model, and returns a JSON compatible version:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. utils/tests/models.go

    	Active    bool
    }
    
    type Account struct {
    	gorm.Model
    	UserID sql.NullInt64
    	Number string
    }
    
    type Pet struct {
    	gorm.Model
    	UserID *uint
    	Name   string
    	Toy    Toy `gorm:"polymorphic:Owner;"`
    }
    
    type Toy struct {
    	gorm.Model
    	Name      string
    	OwnerID   string
    	OwnerType string
    }
    
    type Tools struct {
    	gorm.Model
    	Name     string
    	CustomID string
    	Type     string
    }
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManager.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.classrealm;
    
    import java.util.List;
    import java.util.Map;
    
    import org.apache.maven.model.Model;
    import org.apache.maven.model.Plugin;
    import org.codehaus.plexus.classworlds.realm.ClassRealm;
    import org.eclipse.aether.artifact.Artifact;
    
    /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

        @Override
        public ToolchainPrivate createToolchain(ToolchainModel model) throws MisconfiguredToolchainException {
            if (model == null) {
                return null;
            }
    
            // use DefaultJavaToolChain for compatibility with maven 3.2.3 and earlier
    
            @SuppressWarnings("deprecation")
            JavaToolchainImpl jtc = new DefaultJavaToolChain(model, logger);
    
            // populate the provides section
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. 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{
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

    import java.util.List;
    import java.util.Map;
    import java.util.Properties;
    
    import org.apache.maven.model.Activation;
    import org.apache.maven.model.Profile;
    import org.apache.maven.model.building.ModelProblem;
    import org.apache.maven.model.profile.DefaultProfileActivationContext;
    import org.apache.maven.model.profile.ProfileSelector;
    import org.apache.maven.profiles.activation.ProfileActivationException;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/inheritance/ModelInheritanceAssembler.java

    import org.apache.maven.model.Build;
    import org.apache.maven.model.Model;
    
    /**
     */
    @Deprecated
    public interface ModelInheritanceAssembler {
        String ROLE = ModelInheritanceAssembler.class.getName();
    
        void assembleModelInheritance(Model child, Model parent, String childPathAdjustment);
    
        void assembleModelInheritance(Model child, Model parent);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

     */
    package org.apache.maven.model.building;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.Reader;
    import java.util.Map;
    
    import org.apache.maven.model.Model;
    import org.apache.maven.model.io.ModelReader;
    import org.apache.maven.model.locator.ModelLocator;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ProblemDetectingValueSource.java

     * under the License.
     */
    package org.apache.maven.model.interpolation;
    
    import java.util.List;
    
    import org.apache.maven.model.building.ModelProblem.Severity;
    import org.apache.maven.model.building.ModelProblem.Version;
    import org.apache.maven.model.building.ModelProblemCollector;
    import org.apache.maven.model.building.ModelProblemCollectorRequest;
    import org.codehaus.plexus.interpolation.ValueSource;
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. tests/test_request_params/test_form/test_list.py

    
    class FormModelRequiredListStr(BaseModel):
        p: list[str]
    
    
    @app.post("/model-required-list-str", operation_id="model_required_list_str")
    def read_model_required_list_str(p: Annotated[FormModelRequiredListStr, Form()]):
        return {"p": p.p}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-list-str", "/model-required-list-str"],
    )
    def test_required_list_str_schema(path: str):
        openapi = app.openapi()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top