Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 1,206 for FIELD (0.02 seconds)

  1. tests/test_request_params/test_body/test_required_str.py

    from typing import Annotated, Any, Union
    
    import pytest
    from dirty_equals import IsOneOf
    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/required-str", operation_id="required_str")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 11K bytes
    - Click Count (0)
  2. tests/test_dependency_overrides.py

        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
                    "loc": ["query", "q"],
                    "msg": "Field required",
                    "input": None,
                }
            ]
        }
    
    
    def test_main_depends_q_foo():
        response = client.get("/main-depends/?q=foo")
        assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  3. docs_src/query_param_models/tutorial001_py39.py

    from typing import Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(filter_query: FilterParams = Query()):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 422 bytes
    - Click Count (0)
  4. docs_src/query_param_models/tutorial002_py310.py

    from typing import Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        model_config = {"extra": "forbid"}
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 462 bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/exception/FieldNotStaticRuntimeException.java

     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import java.lang.reflect.Field;
    
    /**
     * Exception thrown when accessing a non-{@literal static} {@link Field} without specifying an object.
     *
     * @author koichik
     */
    public class FieldNotStaticRuntimeException extends ClRuntimeException {
    
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. docs_src/sql_databases/tutorial001_py39.py

    from typing import Union
    
    from fastapi import Depends, FastAPI, HTTPException, Query
    from sqlmodel import Field, Session, SQLModel, create_engine, select
    
    
    class Hero(SQLModel, table=True):
        id: Union[int, None] = Field(default=None, primary_key=True)
        name: str = Field(index=True)
        age: Union[int, None] = Field(default=None, index=True)
        secret_name: str
    
    
    sqlite_file_name = "database.db"
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Oct 09 19:44:42 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/joblog/EditForm.java

         * This is a required field indicating success, failure, or running status.
         */
        @Required
        public String jobStatus;
    
        /**
         * The target or scope of the job execution.
         * This is a required field describing what the job operated on.
         */
        @Required
        public String target;
    
        /**
         * The type of script that was executed for this job.
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  8. cmd/tier_gen.go

    func (z *TierConfigMgr) DecodeMsg(dc *msgp.Reader) (err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, err = dc.ReadMapHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Tiers":
    			var zb0002 uint32
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_body_nested_models/test_tutorial007.py

                {
                    "loc": ["body", "name"],
                    "input": {},
                    "msg": "Field required",
                    "type": "missing",
                },
                {
                    "loc": ["body", "price"],
                    "input": {},
                    "msg": "Field required",
                    "type": "missing",
                },
                {
                    "loc": ["body", "items"],
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  10. cmd/bucket-replication-utils_gen.go

    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, err = dc.ReadMapHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "v":
    			z.Version, err = dc.ReadInt()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 59.3K bytes
    - Click Count (0)
Back to Top