Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for embed (0.15 sec)

  1. tests/test_required_noneable.py

    
    def test_required_nonable_body_embed_no_content():
        response = client.post("/body-embed")
        assert response.status_code == 422
    
    
    def test_required_nonable_body_embed_invalid():
        response = client.post("/body-embed", json={"invalid": "invalid"})
        assert response.status_code == 422
    
    
    def test_required_noneable_body_embed_value():
        response = client.post("/body-embed", json={"b": "foo"})
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat May 14 19:08:31 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  2. manifests/manifest.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package manifests
    
    import (
    	"embed"
    	"io/fs"
    	"os"
    )
    
    // FS embeds the manifests
    //
    //go:embed all:charts/* profiles/*
    var FS embed.FS
    
    // BuiltinOrDir returns a FS for the provided directory. If no directory is passed, the compiled in
    // FS will be used
    func BuiltinOrDir(dir string) fs.FS {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Mar 15 02:30:16 GMT 2023
    - 935 bytes
    - Viewed (0)
  3. fastapi/dependencies/utils.py

        field_info = first_param.field_info
        embed = getattr(field_info, "embed", None)
        body_param_names_set = {param.name for param in flat_dependant.body_params}
        if len(body_param_names_set) == 1 and not embed:
            check_file_field(first_param)
            return first_param
        # If one field requires to embed, all have to be embedded
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. docs_src/body_fields/tutorial001.py

        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 561 bytes
    - Viewed (0)
  5. docs_src/body_multiple_params/tutorial005_py310.py

    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 369 bytes
    - Viewed (0)
  6. docs_src/body_multiple_params/tutorial005.py

    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 407 bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java

        public abstract ConfigurableFileCollection getJquery();
    
        /**
         * The release notes javascript to embed in the HTML
         */
        @InputFile
        @PathSensitive(PathSensitivity.NONE)
        public abstract RegularFileProperty getReleaseNotesJavascriptFile();
    
        /**
         * The release notes CSS to embed in the HTML
         */
        @InputFile
        @PathSensitive(PathSensitivity.NONE)
    Java
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Sep 28 06:35:15 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  8. docs_src/body_multiple_params/tutorial005_an.py

        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
        results = {"item_id": item_id, "item": item}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 457 bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/fakes_test.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"embed"
    	"io/fs"
    	"sync/atomic"
    	"syscall"
    
    	corev1 "k8s.io/api/core/v1"
    
    	"istio.io/istio/cni/pkg/iptables"
    )
    
    //go:embed testdata/cgroupns
    var fakeProc embed.FS
    
    type fakeZtunnel struct {
    	deletedPods atomic.Int32
    	addedPods   atomic.Int32
    	addError    error
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto

    //
    // +protobuf=true
    // +protobuf.embed=string
    // +protobuf.options.marshal=false
    // +protobuf.options.(gogoproto.goproto_stringer)=false
    // +k8s:deepcopy-gen=true
    // +k8s:openapi-gen=true
    message Quantity {
      optional string string = 1;
    }
    
    // QuantityValue makes it possible to use a Quantity as value for a command
    // line parameter.
    //
    // +protobuf=true
    // +protobuf.embed=string
    // +protobuf.options.marshal=false
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top