Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 75 for yaml (0.02 seconds)

  1. .pre-commit-config.yaml

    repos:
      - repo: https://github.com/pre-commit/pre-commit-hooks
        rev: v6.0.0
        hooks:
          - id: check-added-large-files
            args: ['--maxkb=750']
          - id: check-toml
          - id: check-yaml
            args:
            - --unsafe
          - id: end-of-file-fixer
          - id: trailing-whitespace
    
      - repo: local
        hooks:
          - id: local-ruff-check
            name: ruff check
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 11:36:58 GMT 2025
    - 1.8K bytes
    - Click Count (1)
  2. .github/workflows/update-jdks.yml

              sed -n '/^version:/,$p' .teamcity/jdks.yaml >> .teamcity/jdks.yaml.tmp
              mv .teamcity/jdks.yaml.tmp .teamcity/jdks.yaml
          - name: Create Pull Request
            id: create-pull-request
            uses: peter-evans/create-pull-request@v8
            with:
              signoff: true
              sign-commits: true
              commit-message: "Update jdks.yaml"
              add-paths: .teamcity/jdks.yaml
              title: "Update jdks.yaml"
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 09 22:14:16 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  3. docs_src/path_operation_advanced_configuration/tutorial007_pv1_py39.py

        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.parse_obj(data)
        except ValidationError as e:
            raise HTTPException(status_code=422, detail=e.errors())
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 767 bytes
    - Click Count (0)
  4. docs_src/path_operation_advanced_configuration/tutorial007_py39.py

        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.model_validate(data)
        except ValidationError as e:
            raise HTTPException(status_code=422, detail=e.errors(include_url=False))
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 797 bytes
    - Click Count (0)
  5. scripts/topic_repos.py

            )
        data = [repo.model_dump() for repo in final_repos]
    
        # Local development
        # repos_path = Path("../docs/en/data/topic_repos.yml")
        repos_path = Path("./docs/en/data/topic_repos.yml")
        repos_old_content = repos_path.read_text(encoding="utf-8")
        new_repos_content = yaml.dump(data, sort_keys=False, width=200, allow_unicode=True)
        if repos_old_content == new_repos_content:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

            x - x-men
            x - x-avengers
            """
        response = client.post("/items/", content=yaml_data)
        assert response.status_code == 422, response.text
        assert response.json() == {"detail": "Invalid YAML"}
    
    
    def test_post_invalid(client: TestClient):
        yaml_data = """
            name: Deadpoolio
            tags:
            - x-force
            - x-men
            - x-avengers
            - sneaky: object
            """
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Luego usamos el request directamente, y extraemos el cuerpo como `bytes`. Esto significa que FastAPI ni siquiera intentará parsear la carga útil del request como JSON.
    
    Y luego en nuestro código, parseamos ese contenido YAML directamente, y nuevamente estamos usando el mismo modelo Pydantic para validar el contenido YAML:
    
    //// tab | Pydantic v2
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  8. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    Então utilizamos a requisição diretamente, e extraímos o corpo como `bytes`. Isso significa que o FastAPI não vai sequer tentar analisar o corpo da requisição como JSON.
    
    E então no nosso código, nós analisamos o conteúdo YAML diretamente, e estamos utilizando o mesmo modelo Pydantic para validar o conteúdo YAML:
    
    //// tab | Pydantic v2
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  9. docs/de/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial007_py39.py hl[15:20, 22] *}
    
    Obwohl wir nicht die standardmäßig integrierte Funktionalität verwenden, verwenden wir dennoch ein Pydantic-Modell, um das JSON-Schema für die Daten, die wir in YAML empfangen möchten, manuell zu generieren.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  10. .editorconfig

    charset = utf-8
    trim_trailing_whitespace = true
    insert_final_newline = true
    
    spelling_languages = en-US
    
    # Markdown files sometimes need trailing whitespaces.
    [*.md]
    trim_trailing_whitespace = false
    
    [*.{yml,yaml}]
    indent_size = 2
    
    [gradle/verification-metadata.xml]
    indent_size = 3
    
    [subprojects/launcher/src/main/resources/release-features.txt]
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Nov 25 07:01:54 GMT 2025
    - 582 bytes
    - Click Count (0)
Back to Top