約3,400件1ページ目

条件を指定して検索しています。すべての条件を解除する

  • 対象とする言語:日本語
  • 2026/7/27 -Pydantic AI is a framework that attempts to solve this problem by 'placing Python's type system and Pydantic validation at the core of the agent ...

    from pydantic import BaseModel, PositiveInt, ValidationError class Model(BaseModel): positive_int: PositiveInt m = Model(positive_int=1) print(repr(m)) ...

    2020/12/16 -ValidationError という例外が送出されました。 特にバリデーションを実装していないのに、不正値を検出しています。 この様に pydantic を使用すると、 ...

    Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. self is explicitly positional-only to allow ...

    2025/11/4 -FastAPI will automatically return an error: topk must be an integer, not a string. That's Pydantic at work — validating your data before it ever ...

    2024/5/1 -ドキュメントに書いてあったような…。一応確認してみる。 デフォルトのバリデーションの動作確認. intフィールドに文字列を渡すと validation errorになる.

    Pydanticは、Pythonの型アノテーションを利用し、実行時における型ヒントを提供したり、データのバリデーションエラー設定を簡単に提供してくれるためのライブラリです。

    2024/7/16 -Pydanticがモデルのスキーマに合わないデータを見つけると、ValidationErrorを発生させます。 このエラーは、フィールド名、誤った値、問題の説明など、 ...

    2026/2/14 -ValidationErrorだけではリクエストのバリデーションエラーか、レスポンスのバリデーションエラーかを判定できないので、コンテキスト情報を追加して再 ...

    2024/8/16 -このエラーは、検証中に引数として関数に渡されるオブジェクトが tuple 、 list 、または dict でない場合に発生します。 NamedTuple は実装で関数 ...