Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 501 - 510 of 589 for v1 (0.03 seconds)

  1. docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel as BaseModelV2
    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        size: float
    
    
    class ItemV2(BaseModelV2):
        name: str
        description: str | None = None
        size: float
    
    
    app = FastAPI()
    
    
    @app.post("/items/", response_model=ItemV2)
    async def create_item(item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Oct 11 16:45:54 GMT 2025
    - 407 bytes
    - Click Count (0)
  2. tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py

    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello World", "root_path": "/api/v1"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  3. docs/fr/docs/advanced/strict-content-type.md

    ## Exemple d’attaque { #example-attack }
    
    Imaginez que vous mettiez au point un moyen d’exécuter un agent IA local.
    
    Il expose une API à l’adresse
    
    ```
    http://localhost:8000/v1/agents/multivac
    ```
    
    Il y a aussi un frontend à l’adresse
    
    ```
    http://localhost:8000
    ```
    
    /// tip | Astuce
    
    Notez qu’ils ont le même hôte.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  4. cmd/site-replication.go

    		g1.Status != g2.Status ||
    		g1.Policy != g2.Policy {
    		return false
    	}
    	if len(g1.Members) != len(g2.Members) {
    		return false
    	}
    	for _, v1 := range g1.Members {
    		var found bool
    		if slices.Contains(g2.Members, v1) {
    			found = true
    		}
    		if !found {
    			return false
    		}
    	}
    	return true
    }
    
    func isUserInfoEqual(u1, u2 madmin.UserInfo) bool {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 184.8K bytes
    - Click Count (1)
  5. helm/minio/README.md

    NetworkPolicy spec](https://kubernetes.io/docs/tasks/administer-cluster/declare-network-policy#before-you-begin),
    and set `networkPolicy.enabled` to `true`.
    
    For Kubernetes v1.5 & v1.6, you must also turn on NetworkPolicy by setting
    the DefaultDeny namespace annotation. Note: this will enforce policy for *all* pods in the namespace:
    
    ```
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  6. .github/ISSUE_TEMPLATE/04-vuln.yml

          description: What version of govulncheck are you using (`govulncheck -version`)?
          placeholder: |
            Go: devel go1.22-0262ea1ff9 Thu Oct 26 18:46:50 2023 +0000
            Scanner: govulncheck@v1.0.2-0.20231108200754-fcf7dff7b242
            DB: https://vuln.go.dev
            DB updated: 2023-11-21 15:39:17 +0000 UTC
        validations:
          required: true
      - type: textarea
        id: reproduce-latest-version
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  7. cmd/test-utils_test.go

    	queryValue := url.Values{}
    	queryValue.Set("lifecycle", "")
    	return makeTestTargetURL(endPoint, bucketName, "", queryValue)
    }
    
    // return URL for listing objects in the bucket with V1 legacy API.
    func getListObjectsV1URL(endPoint, bucketName, prefix, maxKeys, encodingType string) string {
    	queryValue := url.Values{}
    	if maxKeys != "" {
    		queryValue.Set("max-keys", maxKeys)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 77K bytes
    - Click Count (0)
  8. .github/workflows/update-nightly.yml

        runs-on: ubuntu-latest
        permissions:
          contents: write
        steps:
        - uses: zofrex/mirror-branch@0be56f4c8077a288a635a491b306ba0bb1c810e6 # v1.0.4
          name: Set nightly branch to master HEAD
          with:
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jun 26 15:41:19 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  9. tests/test_pydantic_v1_error.py

        skip_module_if_py_gte_314()
    
    from fastapi import FastAPI
    from fastapi.exceptions import PydanticV1NotSupportedError
    
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", UserWarning)
        from pydantic.v1 import BaseModel
    
    
    def test_raises_pydantic_v1_model_in_endpoint_param() -> None:
        class ParamModelV1(BaseModel):
            name: str
    
        app = FastAPI()
    
        with pytest.raises(PydanticV1NotSupportedError):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  10. .github/workflows/pylint-presubmit.yml

          uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
        - name: Get file changes
          id: get_file_changes
          uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4
          with:
            output: ' '
        - name: Report list of changed files
          run: |
            echo Changed files: ${{ steps.get_file_changes.outputs.files }}
        - name: Set up Python 3.9
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Jan 01 08:09:03 GMT 2026
    - 1.7K bytes
    - Click Count (0)
Back to Top