- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for YAML (0.2 sec)
-
.pre-commit-config.yaml
default_language_version: python: python3.10 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: check-added-large-files - id: check-toml - id: check-yaml args: - --unsafe - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/charliermarsh/ruff-pre-commit rev: v0.2.0 hooks: - id: ruff
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 737 bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial007.py
) async def create_item(request: Request): 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))
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 822 bytes - Viewed (0) -
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).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23.2K bytes - Viewed (0) -
docs/em/docs/contributing.md
docs/en/mkdocs.yml ``` * ๐ ๐ฅ ๐โ ๐ `docs/features.md` ๐ ๐ ๐. ๐ฑ ๐: ```YAML hl_lines="8" site_name: FastAPI # More stuff nav: - FastAPI: index.md - Languages: - en: / - es: /es/ - features.md ``` * ๐ โฌ ๐ ๐ ๐ช๐ธ ๐ โ, โ : ``` docs/es/mkdocs.yml ``` * ๐ฎ โซ๏ธ ๐ค โ ๐ ๐บ โซ๏ธ ๐ช๐ธ, โ : ```YAML hl_lines="8" site_name: FastAPI # More stuff nav:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 11 21:38:15 GMT 2023 - 11.4K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial007_pv1.py
async def create_item(request: Request): 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())
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 789 bytes - Viewed (0) -
.github/actions/people/app/main.py
people_old_content = people_path.read_text(encoding="utf-8") github_sponsors_old_content = github_sponsors_path.read_text(encoding="utf-8") new_people_content = yaml.dump( people, sort_keys=False, width=200, allow_unicode=True ) new_github_sponsors_content = yaml.dump( github_sponsors, sort_keys=False, width=200, allow_unicode=True ) if ( people_old_content == new_people_content
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
docs/pt/docs/contributing.md
* Agora abra o arquivo de configuraรงรฃo MkDocs para Inglรชs em: ``` docs/en/docs/mkdocs.yml ``` * Procure o lugar onde `docs/features.md` estรก localizado no arquivo de configuraรงรฃo. Algum lugar como: ```YAML hl_lines="8" site_name: FastAPI # Mais coisas nav: - FastAPI: index.md - Languages: - en: / - es: /es/ - features.md ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 11 21:38:15 GMT 2023 - 14.9K bytes - Viewed (0) -
docs/en/docs/contributing.md
</div> Now you can check in your code editor the newly created directory `docs/ht/`. That command created a file `docs/ht/mkdocs.yml` with a simple config that inherits everything from the `en` version: ```yaml INHERIT: ../en/mkdocs.yml ``` !!! tip You could also simply create that file with those contents manually.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 17:42:43 GMT 2024 - 14.1K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007_pv1.py
} @needs_pydanticv1 def test_post_broken_yaml(client: TestClient): yaml_data = """ name: Deadpoolio tags: x - x-force 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"} @needs_pydanticv1
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 3.2K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py
} @needs_pydanticv2 def test_post_broken_yaml(client: TestClient): yaml_data = """ name: Deadpoolio tags: x - x-force 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"} @needs_pydanticv2
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 3.3K bytes - Viewed (0)