Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit103f64d

Browse files
Improve documentation regardingjson_schema_input_type (#11858)
Co-authored-by: Douwe Maan <douwe@pydantic.dev>
1 parent56b340a commit103f64d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎pydantic/functional_validators.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class BeforeValidator:
9494
9595
Attributes:
9696
func: The validator function.
97-
json_schema_input_type: The input typeof the function. This is onlyused to generate the appropriate
98-
JSON Schema (in validation mode).
97+
json_schema_input_type: The input type used to generate the appropriate
98+
JSON Schema (in validation mode). The actual input type is `Any`.
9999
100100
Example:
101101
```python
@@ -166,8 +166,8 @@ class PlainValidator:
166166
167167
Attributes:
168168
func: The validator function.
169-
json_schema_input_type: The input typeof the function. This is onlyused to generate the appropriate
170-
JSON Schema (in validation mode).If not provided, will default to `Any`.
169+
json_schema_input_type: The input type used to generate the appropriate
170+
JSON Schema (in validation mode).The actual input type is `Any`.
171171
172172
Example:
173173
```python
@@ -257,8 +257,8 @@ class WrapValidator:
257257
258258
Attributes:
259259
func: The validator function.
260-
json_schema_input_type: The input typeof the function. This is onlyused to generate the appropriate
261-
JSON Schema (in validation mode).
260+
json_schema_input_type: The input type used to generate the appropriate
261+
JSON Schema (in validation mode). The actual input type is `Any`.
262262
263263
```python
264264
from datetime import datetime

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp