Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 606 for yaml (0.02 seconds)

  1. docs/ko/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial007_py310.py hl[15:20, 22] *}
    
    그럼에도 기본 통합 기능을 사용하지 않더라도, YAML로 받고자 하는 데이터에 대한 JSON Schema를 수동으로 생성하기 위해 Pydantic 모델을 여전히 사용합니다.
    
    그 다음 요청을 직접 사용하고, 바디를 `bytes`로 추출합니다. 이는 FastAPI가 요청 페이로드를 JSON으로 파싱하려고 시도조차 하지 않는다는 뜻입니다.
    
    그리고 코드에서 YAML 콘텐츠를 직접 파싱한 뒤, 다시 같은 Pydantic 모델을 사용해 YAML 콘텐츠를 검증합니다:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  2. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_wrong_lang_code.py

        assert "Error processing docs/lang/docs/doc.md" in result.output
        assert (
            "Code block (lines 16-19) has different language than the original block ('yaml' vs 'toml')"
        ) in result.output
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_wrong_lang_code_2.md")],
        indirect=True,
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  3. .ci/jobs.t/elastic+elasticsearch+pull-request+packaging-upgrade-tests.yml

        axes:
          - axis:
              type: label-expression
              name: os
              values:
                - centos-8-packaging
                - ubuntu-20.04-packaging
          - axis:
              type: yaml
              filename: ".ci/bwcVersions"
              name: "BWC_VERSION"
        builders:
          - inject:
              properties-file: '.ci/java-versions.properties'
              properties-content: |
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Aug 10 19:43:38 GMT 2021
    - 1.9K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/YamlRestCompatTestPlugin.java

    import java.io.File;
    import java.nio.file.Path;
    import java.util.Map;
    
    import static org.elasticsearch.gradle.internal.test.rest.RestTestUtil.setupTestDependenciesDefaults;
    
    /**
     * Apply this plugin to run the YAML based REST tests from a prior major version against this version's cluster.
     */
    public class YamlRestCompatTestPlugin implements Plugin<Project> {
        private static final String REST_COMPAT_CHECK_TASK_NAME = "checkRestCompat";
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 16:26:11 GMT 2021
    - 11.7K bytes
    - Click Count (0)
  5. scripts/tests/test_translation_fixer/test_code_blocks/data/translated_doc_wrong_lang_code.md

    def hello_world():
        # Comment with indentation
        print("Hello, world!")  # Print greeting
    ```
    
    Some more text
    
    The following block has wrong language code (should be TOML):
    
    ```yaml
    # This is a sample TOML code block
    title = "TOML Example"  # Title of the document
    ```
    
    And more text
    
    ```console
    // Use the command "live" and pass the language code as a CLI argument
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 946 bytes
    - Click Count (0)
  6. docs/en/docs/alternatives.md

    The way it works is that you write the definition of the schema using YAML format inside the docstring of each function handling a route.
    
    And it generates OpenAPI schemas.
    
    That's how it works in Flask, Starlette, Responder, etc.
    
    But then, we have again the problem of having a micro-syntax, inside of a Python string (a big YAML).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  7. cmd/batch-handlers.go

    type BatchJobRequest struct {
    	ID        string               `yaml:"-" json:"name"`
    	User      string               `yaml:"-" json:"user"`
    	Started   time.Time            `yaml:"-" json:"started"`
    	Replicate *BatchJobReplicateV1 `yaml:"replicate" json:"replicate"`
    	KeyRotate *BatchJobKeyRotateV1 `yaml:"keyrotate" json:"keyrotate"`
    	Expire    *BatchJobExpire      `yaml:"expire" json:"expire"`
    	ctx       context.Context      `msg:"-"`
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 63.5K bytes
    - Click Count (1)
  8. scripts/sponsors.py

        github_sponsors = {
            "sponsors": sponsors,
        }
    
        # For local development
        # github_sponsors_path = Path("../docs/en/data/github_sponsors.yml")
        github_sponsors_path = Path("./docs/en/data/github_sponsors.yml")
        updated = update_content(
            content_path=github_sponsors_path, new_content=github_sponsors
        )
    
        if not updated:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  9. docs/zh/docs/alternatives.md

    但文档仍然缺失,于是出现了 APISpec。
    
    它为许多框架提供插件(Starlette 也有插件)。
    
    它的工作方式是:你在处理路由的每个函数的文档字符串里,用 YAML 格式编写模式定义。
    
    然后它会生成 OpenAPI 模式。
    
    这正是它在 Flask、Starlette、Responder 等框架里的工作方式。
    
    但这样我们又回到了在 Python 字符串中维护一套“微语法”(一大段 YAML)的问题上。
    
    编辑器很难为此提供帮助;而且如果我们修改了参数或 Marshmallow 模式,却忘了同步更新那个 YAML 文档字符串,生成的模式就会过时。
    
    /// info | 信息
    
    APISpec 由与 Marshmallow 相同的开发者创建。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  10. scripts/contributors.py

        contributors_path = Path("./docs/en/data/contributors.yml")
        # translators_path = Path("../docs/en/data/translators.yml")
        translators_path = Path("./docs/en/data/translators.yml")
        # translation_reviewers_path = Path("../docs/en/data/translation_reviewers.yml")
        translation_reviewers_path = Path("./docs/en/data/translation_reviewers.yml")
    
        updated = [
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 8.6K bytes
    - Click Count (0)
Back to Top