Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2adca93
feat: Replace Optional with Union type hints for improved type clarity
koxudaxi Dec 19, 2025
9cf74cd
docs: update CLI reference documentation
github-actions[bot] Dec 19, 2025
e01c776
feat: Update type hints to use Optional and Union for better compatib…
koxudaxi Dec 19, 2025
38448bb
Merge remote-tracking branch 'origin/feat/default-union-operator' int…
koxudaxi Dec 19, 2025
7ef3ae5
docs: update CLI reference documentation
github-actions[bot] Dec 19, 2025
9b82f93
Merge branch 'main' into feat/default-union-operator
koxudaxi Dec 19, 2025
06becfa
feat: Enhance type hinting by replacing Optional with Union and addin…
koxudaxi Dec 19, 2025
5fda0c9
Merge remote-tracking branch 'origin/feat/default-union-operator' int…
koxudaxi Dec 19, 2025
9471247
docs: update CLI reference documentation
github-actions[bot] Dec 19, 2025
f5d103f
Merge branch 'main' into feat/default-union-operator
koxudaxi Dec 19, 2025
b4c2e1a
feat: Enhance type hinting by replacing Optional with Union and addin…
koxudaxi Dec 19, 2025
cd7e89a
feat: Refactor type hint handling to improve union type hint generation
koxudaxi Dec 19, 2025
6a933fe
feat: Update type hints to use native union types and improve readabi…
koxudaxi Dec 19, 2025
e585fb3
docs: update CLI reference documentation
github-actions[bot] Dec 19, 2025
888c3e0
Merge branch 'main' into feat/default-union-operator
koxudaxi Dec 19, 2025
bd3d7de
feat: Update type hints to use native union types across multiple files
koxudaxi Dec 19, 2025
d259fdc
docs: update CLI reference documentation
github-actions[bot] Dec 19, 2025
e2a41e8
feat: Add LEGACY_BLACK_SKIP decorator to JSON Schema test functions
koxudaxi Dec 19, 2025
5944724
Merge remote-tracking branch 'origin/feat/default-union-operator' int…
koxudaxi Dec 19, 2025
76c58ba
feat: Add LEGACY_BLACK_SKIP decorator to JSON Schema test functions
koxudaxi Dec 19, 2025
4b0519f
feat: Apply LEGACY_BLACK_SKIP decorator to relevant test functions
koxudaxi Dec 19, 2025
6e4ff4f
feat: Apply LEGACY_BLACK_SKIP decorator to relevant test functions
koxudaxi Dec 19, 2025
bec6c81
feat: Add coverage pragma to type hint method return
koxudaxi Dec 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 11 additions & 19 deletions docs/cli-reference/base-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,12 @@ For consistent cross-platform behavior, explicitly specify `--encoding utf-8`.

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, Field


class 日本語Model(BaseModel):
名前: Optional[str] = Field(None, description='ユーザー名')
年齢: Optional[int] = None
名前: str | None = Field(None, description='ユーザー名')
年齢: int | None = None
```

---
Expand Down Expand Up @@ -122,15 +120,13 @@ schemas. Required unless using `--url` to fetch schema from a URL.

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel


class Pet(BaseModel):
id: Optional[int] = None
name: Optional[str] = None
tag: Optional[str] = None
id: int | None = None
name: str | None = None
tag: str | None = None
```

---
Expand Down Expand Up @@ -236,15 +232,13 @@ is written to stdout.

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel


class Pet(BaseModel):
id: Optional[int] = None
name: Optional[str] = None
tag: Optional[str] = None
id: int | None = None
name: str | None = None
tag: str | None = None
```

---
Expand Down Expand Up @@ -298,15 +292,13 @@ Format: `HeaderName:HeaderValue`.

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel


class Pet(BaseModel):
id: Optional[int] = None
name: Optional[str] = None
tag: Optional[str] = None
id: int | None = None
name: str | None = None
tag: str | None = None
```

---
Expand Down
Loading
Loading