Search Options

Results per page
Sort
Preferred Languages
Advance

Results 781 - 790 of 2,013 for none (0.04 sec)

  1. 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 Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an.py

    
    def test_query_no_values():
        url = "/items/"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": None}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/path-params-numeric-validations.md

    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="8"
    {!> ../../docs_src/path_params_numeric_validations/tutorial001_py310.py!}
    ```
    
    ////
    
    /// note
    
    ➡ 🔢 🕧 ✔ ⚫️ ✔️ 🍕 ➡.
    
    , 👆 🔜 📣 ⚫️ ⏮️ `...` ™ ⚫️ ✔.
    
    👐, 🚥 👆 📣 ⚫️ ⏮️ `None` ⚖️ ⚒ 🔢 💲, ⚫️ 🔜 🚫 📉 🕳, ⚫️ 🔜 🕧 🚚.
    
    ///
    
    ## ✔ 🔢 👆 💪
    
    ➡️ 💬 👈 👆 💚 📣 🔢 🔢 `q` ✔ `str`.
    
    & 👆 🚫 💪 📣 🕳 🙆 👈 🔢, 👆 🚫 🤙 💪 ⚙️ `Query`.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/OsddHelper.java

            if (!Constants.AUTO.equalsIgnoreCase(osddLinkEnabled)) {
                return false;
            }
    
            final String ssoType = fessConfig.getSsoType();
            return StringUtil.isBlank(ssoType) || Constants.NONE.equalsIgnoreCase(ssoType);
        }
    
        public boolean hasOpenSearchFile() {
            return osddFile != null;
        }
    
        public StreamResponse asStream() {
            if (osddFile == null) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. tests/test_multi_query_errors.py

    from typing import List
    
    from dirty_equals import IsDict
    from fastapi import FastAPI, Query
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/items/")
    def read_items(q: List[int] = Query(default=None)):
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_multi_query():
        response = client.get("/items/?q=5&q=6")
        assert response.status_code == 200, response.text
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_response_model/test_tutorial004_py39.py

                {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
            ),
            (
                "/items/baz",
                {
                    "name": "Baz",
                    "description": None,
                    "price": 50.2,
                    "tax": 10.5,
                    "tags": [],
                },
            ),
        ],
    )
    def test_get(url, data, client: TestClient):
        response = client.get(url)
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/ExplodeZipAndFindJars.groovy

    import java.util.zip.ZipEntry
    import java.util.zip.ZipInputStream
    
    @CompileStatic
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class ExplodeZipAndFindJars implements TransformAction<TransformParameters.None> {
    
        @PathSensitive(PathSensitivity.NAME_ONLY)
        @InputArtifact
        abstract Provider<FileSystemLocation> getArtifact()
    
        @Override
        void transform(TransformOutputs outputs) {
    Registered: Wed Oct 30 11:36:09 UTC 2024
    - Last Modified: Thu Jul 08 13:44:59 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/GenerateDefaultImports.java

    import java.io.PrintWriter;
    import java.util.LinkedHashSet;
    import java.util.Set;
    
    @NonNullApi
    @CacheableTask
    public abstract class GenerateDefaultImports extends DefaultTask {
        @PathSensitive(PathSensitivity.NONE)
        @InputFile
        public abstract RegularFileProperty getMetaDataFile();
    
        @OutputFile
        public abstract RegularFileProperty getImportsDestFile();
    
        /**
    Registered: Wed Oct 30 11:36:09 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleJars.groovy

    import org.gradle.work.DisableCachingByDefault
    
    @CompileStatic
    @DisableCachingByDefault(because = "Only filters the input artifact")
    abstract class FindGradleJars implements TransformAction<TransformParameters.None> {
    
        @PathSensitive(PathSensitivity.NAME_ONLY)
        @InputArtifact
        abstract Provider<FileSystemLocation> getArtifact()
    
        @Override
        void transform(TransformOutputs outputs) {
    Registered: Wed Oct 30 11:36:09 UTC 2024
    - Last Modified: Thu Apr 11 12:20:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/job/CrawlJob.java

            resultBuf.append("Web  Config Id:");
            if (webConfigIds == null) {
                if (runAll) {
                    resultBuf.append(" ALL\n");
                } else {
                    resultBuf.append(" NONE\n");
                }
            } else {
                for (final String id : webConfigIds) {
                    resultBuf.append(' ').append(id);
                }
                resultBuf.append('\n');
            }
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Sun Jun 23 04:13:47 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top