Skip to content

Annofab v0.210.0 対応 - #757

Merged
yuji38kwmt merged 5 commits into
mainfrom
202605252-1
May 24, 2026
Merged

Annofab v0.210.0 対応#757
yuji38kwmt merged 5 commits into
mainfrom
202605252-1

Conversation

@yuji38kwmt

Copy link
Copy Markdown
Collaborator

No description provided.

@kci-pr-agent

kci-pr-agent Bot commented May 24, 2026

Copy link
Copy Markdown

Title

202605252 1


Description

  • データクラス型をUnion型に統一

  • Swagger定義バージョンを0.210.0に更新

  • ドキュメント内のSON→JSON表記修正

  • パラメータaggregate_by_task_and_inputを除去


Changes walkthrough 📝

Relevant files
Enhancement
annotation.py
パイプ型からUnion型へ修正                                                                                   

annofabapi/dataclass/annotation.py

  • typing.Unionをインポート追加
  • AnnotationDataV1をパイプ表記からUnionに変更
+2/-2     
annotation_specs.py
追加データ型をUnion型化                                                                                     

annofabapi/dataclass/annotation_specs.py

  • typing.Unionをインポート追加
  • AdditionalDataDefaultTypeUnionに変更
+2/-2     
Documentation
generated_api.py
ドキュメント表記のtypo修正                                                                                   

annofabapi/generated_api.py

  • ドキュメント文字列の"SON構造"を"JSON構造"に修正
+1/-2     
Configuration changes
swagger.v2.yaml
swagger.v2 バージョン更新                                                                             

generate/swagger/swagger.v2.yaml

  • API定義のversionを0.206.0→0.210.0に更新
+1/-1     
swagger.yaml
Swagger定義更新とパラメータ削除                                                                           

generate/swagger/swagger.yaml

  • versionを0.206.0→0.210.0に更新
  • ドキュメント内の"SON"を"JSON"に修正
  • aggregate_by_task_and_inputパラメータを削除
  • +2/-10   

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • @yuji38kwmt yuji38kwmt changed the title 202605252 1 Annofab v0.210.0 対応 May 24, 2026
    @kci-pr-agent

    kci-pr-agent Bot commented May 24, 2026

    Copy link
    Copy Markdown

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ Recommended focus areas for review

    タイプヒント検討

    Python 3.9以上の型ヒント(Uniondict[str, Any])の使用がプロジェクトのPythonバージョンやコードスタイルと整合しているか確認してください。

    from typing import Any, Union  # pylint: disable=unused-import
    
    from dataclasses_json import DataClassJsonMixin
    
    # ruff: noqa: E501
    from annofabapi.models import (
        AdditionalDataDefinitionType,
        AnnotationDataHoldingType,
        InternationalizationMessage,
        TaskPhase,
        TaskStatus,
    )
    
    AnnotationDataV1 = Union[str, dict[str, Any]]
    パラメーター削除

    Swagger定義からaggregate_by_task_and_inputが削除されていますが、クライアントやサーバー実装への影響を確認し、API仕様と実装が一致しているか検証してください。

      in: query
      description: 1ページあたりの取得するデータ件数
      required: false
      schema:
        type: integer
        minimum: 0
        maximum: 200
        default: 30
    - name: no_aggregate_label_and_input
    バージョン整合性

    Swagger定義のversion0.210.0に更新していますが、他の設定ファイル(swagger.yamlやリリースノート、パッケージメタデータ等)との同期を確認してください。

    version: 0.210.0

    @kci-pr-agent

    kci-pr-agent Bot commented May 24, 2026

    Copy link
    Copy Markdown

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    @yuji38kwmt
    yuji38kwmt merged commit d46c204 into main May 24, 2026
    8 checks passed
    @yuji38kwmt
    yuji38kwmt deleted the 202605252-1 branch May 24, 2026 09:21
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    1 participant