Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 3,238 for cname (0.21 sec)

  1. docs_src/response_model/tutorial005_py310.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float = 10.5
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2},
        "baz": {
            "name": "Baz",
            "description": "There goes my baz",
            "price": 50.2,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 816 bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial005_py39.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: float = 10.5
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2},
        "baz": {
            "name": "Baz",
            "description": "There goes my baz",
            "price": 50.2,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 848 bytes
    - Viewed (0)
  3. apache-maven/src/main/appended-resources/META-INF/LICENSE.vm

    #*    *###
    #*    *### infer SPDX license id
    #*    *##if ( $MITLicenseNames.contains( $license.name ) )
    #*      *##set ( $spdx = 'MIT' )
    #*    *##elseif ( $license.name == "Eclipse Public License, Version 1.0" )
    #*      *##set ( $spdx = 'EPL-1.0' )
    #*    *##elseif ( $license.name == "Eclipse Public License, Version 2.0"
                        || $license.url.contains( "https://www.eclipse.org/legal/epl-v20.html" ) )
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. tests/test_pydantic_v1_error.py

                return ReturnModelV1(name="test")
    
    
    def test_raises_pydantic_v1_model_in_response_model() -> None:
        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"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/main/resources/esflute_log.xml

    	<!-- The components of DBFlute Runtime. -->
    	<component name="invokerAssistant" class="org.codelibs.fess.opensearch.common.ImplementedInvokerAssistant"/>
    	<component name="behaviorCommandInvoker" class="org.dbflute.bhv.core.BehaviorCommandInvoker"/>
    
    	<!-- The components of Behavior. -->
    	<component name="clickLogBhv" class="org.codelibs.fess.opensearch.log.exbhv.ClickLogBhv"/>
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Wed Nov 06 13:45:02 UTC 2024
    - 869 bytes
    - Viewed (0)
  6. tests/serializer_test.go

    	}
    
    	if result.Name != "Product 1 (Updated)" {
    		t.Errorf("expected name to be 'Product 1 (Updated)', got %s", result.Name)
    	}
    
    	if result.Data != nil {
    		t.Errorf("expected Data to be nil, got %v", result.Data)
    	}
    
    	// Test with non-nil value
    	dataValue := map[string]interface{}{"key": "value"}
    	product2 := ProductWithAny{Name: "Product 2", Data: dataValue}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Nov 22 03:14:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

                        final Map<String, Object> map = new HashMap<>();
                        final String name = filePath.getFileName().toString();
                        map.put("id", Base64.getUrlEncoder().encodeToString(name.getBytes(StandardCharsets.UTF_8)));
                        map.put("name", name);
                        try {
                            map.put("lastModified", new Date(Files.getLastModifiedTime(filePath).toMillis()));
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

      private fun contentType(file: File): String =
        when {
          file.name.endsWith(".css") -> "text/css"
          file.name.endsWith(".gif") -> "image/gif"
          file.name.endsWith(".html") -> "text/html"
          file.name.endsWith(".jpeg") -> "image/jpeg"
          file.name.endsWith(".jpg") -> "image/jpeg"
          file.name.endsWith(".js") -> "application/javascript"
          file.name.endsWith(".png") -> "image/png"
          else -> "text/plain"
        }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. tests/test_custom_schema_fields.py

    item_schema = {
        "title": "Item",
        "required": ["name"],
        "type": "object",
        "x-something-internal": {
            "level": 4,
        },
        "properties": {
            "name": {
                "title": "Name",
                "type": "string",
            },
            "description": {
                "title": "Description",
                "type": ["string", "null"],
            },
        },
    }
    
    
    def test_custom_response_schema():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  10. tests/test_validate_response_dataclass.py

    app = FastAPI()
    
    
    @dataclass
    class Item:
        name: str
        price: Optional[float] = None
        owner_ids: Optional[list[int]] = None
    
    
    @app.get("/items/invalid", response_model=Item)
    def get_invalid():
        return {"name": "invalid", "price": "foo"}
    
    
    @app.get("/items/innerinvalid", response_model=Item)
    def get_innerinvalid():
        return {"name": "double invalid", "price": "foo", "owner_ids": ["foo", "bar"]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.2K bytes
    - Viewed (0)
Back to top