Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1061 - 1070 of 2,122 for infos (0.06 seconds)

  1. docs/zh/docs/tutorial/schema-extra-example.md

    你可以设置 `"json_schema_extra"`,其值为一个 `dict`,包含你希望出现在生成 JSON Schema 中的任意附加数据,包括 `examples`。
    
    /// tip | 提示
    
    你也可以用同样的技巧扩展 JSON Schema,添加你自己的自定义额外信息。
    
    例如,你可以用它为前端用户界面添加元数据等。
    
    ///
    
    /// info | 信息
    
    OpenAPI 3.1.0(自 FastAPI 0.99.0 起使用)增加了对 `examples` 的支持,它是 JSON Schema 标准的一部分。
    
    在此之前,只支持使用单个示例的关键字 `example`。OpenAPI 3.1.0 仍然支持它,但它已被弃用,并不属于 JSON Schema 标准。因此,建议你把 `example` 迁移到 `examples`。🤓
    
    你可以在本页末尾阅读更多内容。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  2. fastapi/openapi/models.py

    class Tag(BaseModelWithConfig):
        name: str
        description: str | None = None
        externalDocs: ExternalDocumentation | None = None
    
    
    class OpenAPI(BaseModelWithConfig):
        openapi: str
        info: Info
        jsonSchemaDialect: str | None = None
        servers: list[Server] | None = None
        # Using Any for Specification Extensions
        paths: dict[str, PathItem | Any] | None = None
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/job/GenerateThumbnailJob.java

                createSystemProperties(cmdList, propFile);
    
                final File baseDir = new File(servletContext.getRealPath("/WEB-INF")).getParentFile();
    
                if (logger.isInfoEnabled()) {
                    logger.info("ThumbnailGenerator: \nDirectory={}\nOptions={}", baseDir, cmdList);
                }
    
                final JobProcess jobProcess = processHelper.startProcess(sessionId, cmdList, pb -> {
                    pb.directory(baseDir);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  4. docs/ru/docs/advanced/events.md

    {* ../../docs_src/events/tutorial002_py310.py hl[6] *}
    
    Здесь функция-обработчик события `shutdown` запишет строку текста `"Application shutdown"` в файл `log.txt`.
    
    /// info | Информация
    
    В функции `open()` параметр `mode="a"` означает «добавление» (append), то есть строка будет добавлена в конец файла, без перезаписи предыдущего содержимого.
    
    ///
    
    /// tip | Совет
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/additional-responses.md

    例如,要宣告一個狀態碼為 `404` 的額外回應,並使用 Pydantic 模型 `Message`,你可以這樣寫:
    
    {* ../../docs_src/additional_responses/tutorial001_py310.py hl[18,22] *}
    
    /// note | 注意
    
    請記住你必須直接回傳 `JSONResponse`。
    
    ///
    
    /// info | 說明
    
    `model` 這個鍵不屬於 OpenAPI。
    
    **FastAPI** 會從這裡取出 Pydantic 模型,產生 JSON Schema,並放到正確位置。
    
    正確的位置是:
    
    * 在 `content` 這個鍵中,其值是一個 JSON 物件(`dict`),包含:
        * 一個媒體型別作為鍵,例如 `application/json`,其值是另一個 JSON 物件,當中包含:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsCreator.java

         * This method is called automatically after construction to add this creator to the dictionary manager.
         */
        @PostConstruct
        public void register() {
            if (logger.isInfoEnabled()) {
                logger.info("Loaded {}", this.getClass().getSimpleName());
            }
            dictionaryManager.addCreator(this);
        }
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 2K bytes
    - Click Count (0)
  7. tests/test_arbitrary_types.py

            }
        )
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("openapi.json")
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/": {
                        "get": {
                            "summary": "Test",
                            "operationId": "test__get",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  8. tests/test_multi_query_errors.py

    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/": {
                        "get": {
                            "responses": {
                                "200": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_additional_responses/test_tutorial003.py

    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/{item_id}": {
                        "get": {
                            "responses": {
                                "404": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

        }
    
        private void commands(CliRequest cliRequest) {
            if (cliRequest.showErrors) {
                slf4jLogger.info("Error stacktraces are turned on.");
            }
    
            if (MavenExecutionRequest.CHECKSUM_POLICY_WARN.equals(cliRequest.request.getGlobalChecksumPolicy())) {
                slf4jLogger.info("Disabling strict checksum verification on all artifact downloads.");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
Back to Top