Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove no message exception #541

Merged
merged 1 commit into from
May 16, 2023

Conversation

hnassr
Copy link
Contributor

@hnassr hnassr commented May 14, 2023

There are some situations that don't have a message, for example, if you try to get rejected document getContentDocument

example response

{
  "warnings": [
    {
      "code": "CONTENT_REJECTED",
      "message": "",
      "details": "Claims (e.g., recommended by, certified, tested, approved, proven, validated, etc) and awards must be substantiated by a note in the text with certifying or awarding body, study, publication, or other evidence, and year. Awards must have been granted in the last two years."
    },
    {
      "code": "CONTENT_REJECTED",
      "message": "",
      "details": "Please do not use informal or boastful marketing language (e.g., most amazing new product, etc) when addressing the customer. Claims of leadership or top rating must be substantiated by a note in the text with a study, publication, or other evidence, and year."
    },
    {
      "code": "CONTENT_REJECTED",
      "message": "",
      "details": "Before publishing this submission we need you to do some editing:############"
    }
  ],
  "contentRecord": {
    "contentReferenceKey": "#######",
    "contentMetadata": {
      "name": "#######",
      "marketplaceId": "ATVPDKIKX0DER",
      "status": "REJECTED",
      "badgeSet": [
        "STANDARD"
      ],
      "updateTime": "2022-03-21T17:33:38.82Z"
    },
    "contentDocument": null
  }
}

@jlevers
Copy link
Owner

jlevers commented May 16, 2023

Classic Amazon! Thanks for the PR, merging.

@jlevers jlevers merged commit 6f25fd3 into jlevers:main May 16, 2023
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.

None yet

2 participants