Skip to content

feat: add message field to TagResultsItem#320

Open
stefano-rm wants to merge 1 commit intoIBM:mainfrom
stefano-rm:feat/add-message-field-tagresultsitem
Open

feat: add message field to TagResultsItem#320
stefano-rm wants to merge 1 commit intoIBM:mainfrom
stefano-rm:feat/add-message-field-tagresultsitem

Conversation

@stefano-rm
Copy link

@stefano-rm stefano-rm commented Feb 12, 2026

PR summary

Add optional message parameter to TagResultsItem class to expose detailed error messages returned by the GhoST Tags API when tagging operations fail.

PR Checklist

  • The commit message follows the Angular Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Current vs new behavior

Current behavior: When a tagging operation fails, the TagResultsItem only contains resource_id and is_error fields. Error details are not exposed to SDK users.

New behavior: The TagResultsItem now includes an optional message parameter that contains the error message returned by the API, providing better error diagnostics.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

  • Related to (IBM) task #29830
  • Changes are minimal: adds the message parameter to __init__, docstrings, and from_dict method
  • The parameter is optional and backward compatible
  • Swagger definition has been updated and merged in the ghost-for-resources repository

@CLAassistant
Copy link

CLAassistant commented Feb 12, 2026

CLA assistant check
All committers have signed the CLA.

Add optional message field to TagResultsItem class to expose error
messages returned by the GhoST Tags API when tagging operations fail.

Changes:
- Add message parameter to class docstring
- Add message parameter to __init__ method
- Add message field assignment in __init__
- Add message extraction in from_dict method

Related to task #29830

Signed-off-by: Stefano Roberto Mollica <stefano.mollica@it.ibm.com>
@stefano-rm stefano-rm force-pushed the feat/add-message-field-tagresultsitem branch from 8f85b7b to 0c4e4d8 Compare February 12, 2026 14:11
Copy link

@mkrudele mkrudele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no unit tests added.

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.

3 participants