Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 237 for Product (0.06 sec)

  1. tests/hooks_test.go

    	DB.Model(&product).Updates(Product3{Code: "L1214"})
    	if product.Price != 270 || product.Code != "L1214" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    	DB.Model(&product).Select("Name", "Code", "Price").Updates(Product3{Name: "Product New4", Code: ""})
    	if product.Name != "Product New4" || product.Price != 320 || product.Code != "" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. tests/test_request_body_parameters_media_type.py

    
    # NOTE: These are not valid JSON:API resources
    # but they are fine for testing requestBody with custom media_type
    class Product(BaseModel):
        name: str
        price: float
    
    
    class Shop(BaseModel):
        name: str
    
    
    @app.post("/products")
    async def create_product(data: Product = Body(media_type=media_type, embed=True)):
        pass  # pragma: no cover
    
    
    @app.post("/shops")
    async def create_shop(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. tests/test_get_request_body.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Product(BaseModel):
        name: str
        description: str = None  # type: ignore
        price: float
    
    
    @app.get("/product")
    async def create_item(product: Product):
        return product
    
    
    client = TestClient(app)
    
    
    def test_get_with_body():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. apache-maven/src/main/appended-resources/META-INF/NOTICE.vm

    Google Guice - Core Library Copyright 2006-2022 Google, Inc. This product includes software developed at The Apache Software Foundation (http://www.apache.org/). META-INF/NOTICE in archive lib/plexus-utils-3.2.1.jar This product includes software developed by the Indiana University Extreme! Lab (http://www.extreme.indiana.edu/). This product includes software developed by The Apache Software Foundation (http://www.apache.org/). This product includes software developed by ThoughtWorks (http://www.thoughtworks.com)....
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 10 19:27:25 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/BigIntegerMath.java

          // If it won't fit in a long, then we store off the intermediate product.
          if (normalizedBits + productBits >= Long.SIZE) {
            bignums.add(BigInteger.valueOf(product));
            product = 1;
            productBits = 0;
          }
          product *= normalizedNum;
          productBits = LongMath.log2(product, FLOOR) + 1;
        }
        // Check for leftovers.
        if (product > 1) {
          bignums.add(BigInteger.valueOf(product));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. schema/schema_test.go

    		LanguageCode uint `gorm:"primaryKey"`
    		Code         string
    		Name         string
    	}
    
    	product, err := schema.Parse(&Product{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse product struct with composite primary key, got error %v", err)
    	}
    
    	prioritizedPrimaryField := schema.Field{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/feature_request.md

    ---
    name: Feature request
    about: Suggest an idea to improve Istio
    
    ---
    (This is used to request new product features, please visit <https://github.com/istio/istio/discussions> for questions on using Istio)
    
    **Describe the feature request**
    
    **Describe alternatives you've considered**
    
    **Affected product area (please put an X in all that apply)**
    
    [ ] Ambient
    [ ] Docs
    [ ] Dual Stack
    [ ] Installation
    [ ] Networking
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Feb 12 19:42:48 UTC 2024
    - 707 bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Lists.java

       * }
       * }</pre>
       *
       * <p>Note that if any input list is empty, the Cartesian product will also be empty. If no lists
       * at all are provided (an empty list), the resulting Cartesian product has one element, an empty
       * list (counter-intuitive, but mathematically consistent).
       *
       * <p><i>Performance notes:</i> while the cartesian product of lists of size {@code m, n, p} is a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/bug_report.yml

      - type: checkboxes
        id: security-check
        attributes:
          label: Is this the right place to submit this?
          description: |-
            This is used to report product bugs:
            To report a security vulnerability, please visit <https://istio.io/about/security-vulnerabilities>.
            Any crashes are potentially security vulnerabilities and should be treated as such.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jan 10 15:17:29 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. apache-maven/src/main/appended-resources/licenses/EPL-2.0.txt

    participate in any such claim at its own expense.
    
    For example, a Contributor might include the Program in a commercial
    product offering, Product X. That Contributor is then a Commercial
    Contributor. If that Commercial Contributor then makes performance
    claims, or offers warranties related to Product X, those performance
    claims and warranties are such Commercial Contributor's responsibility
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Jun 04 06:45:16 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top