Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Gusto embedded response from introspection.refresh_token expects created_at to be str but in JSON response is int fails pydantic validation

オープン
#31 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

Start in gusto_embedded/src/gusto_embedded/models/authentication.py at line 41 and compare the Authentication model with the shown /oauth/token response. Reproduce validation using the integer created_at value and verify that the complete example response is accepted without a Pydantic validation error.

索引モデルが issue の本文から書いたものです。

説明

Gusto embedded failing pydantic validation, output from /oauth/token is like:

{
    "access_token": "access-token-here",
    "token_type": "Bearer",
    "expires_in": 7200,
    "refresh_token": "refresh-token-here",
    "scope": "public scope here...",
    "created_at": 1766098962
}

Authentication type expects created_at to be str not int. Pydantic validation fails.

https://github.com/Gusto/gusto-python-client/blob/4a49689bd8e3a29ffc3a048dbe011c19ba033314/gusto_embedded/src/gusto_embedded/models/authentication.py#L41

I am on release 0.2.4 of gusto_embedded

主要言語
Python
スター
2
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。