Skip to content

Commit

Permalink
Fix unformatted description
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Sep 20, 2024
1 parent 2288d7c commit 1a39075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/generate-code
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ module Generator
description = description.gsub("**Note:**", "@note")
description = convert_links_to_markdown(description)
lines = description.split("\n")
usage_plan_index = lines.find_index { |line| line.include?("**Usage Plan") }
usage_plan_index = lines.find_index { |line| line.downcase.include?("usage plan") }
lines = lines[0...usage_plan_index] if usage_plan_index
lines.reject! { |line| line.strip == "" }
lines.join("\n").strip
Expand Down
6 changes: 1 addition & 5 deletions lib/peddler/api/fba_inventory_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ class FBAInventoryV1 < API
# sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation
# returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this
# operation may contain special characters that must be encoded to successfully call the API. To avoid errors with
# SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ----
# | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to
# the requested operation, when available. The table above indicates the default rate and burst values for this
# operation. Selling partners whose business demands require higher throughput may see higher rate and burst
# values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
# SKUs when encoding URLs, refer to URL Encoding.
#
# @note This operation can make a dynamic sandbox call.
# @param [Boolean] details true to return inventory summaries with additional summarized inventory details and
Expand Down

0 comments on commit 1a39075

Please sign in to comment.