プロジェクト

全般

プロフィール

Vote #79263

完了

JSON API responses cannot have elements named 'request' or 'response'

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
20
version_id:
99
issue_org_id:
28564
author_id:
40856
assigned_to_id:
332
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I stumbled upon this while creating a Plugin with an API.

The problem is that @Builders::Structure@ declares @attr_accessor :request, :response@. As a consequence, these get called instead of @Structure#method_missing@ when doing @api.request@ or @api.response@ in a @.rsb@ template.

This patch adds a test illustrating the problem and replaces the accessors with direct instance variable usage.


journals

--------------------------------------------------------------------------------
Setting target version to 4.1.0.
--------------------------------------------------------------------------------
Committed. Thank you for your contribution.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン4.0.0_99 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0