Skip to content

Commit

Permalink
Update generator for batch actions
Browse files Browse the repository at this point in the history
New logic parses the operation from the x-batchable-actions segment of the OAS instead of incorrectly assuming the action was always one of a short list.
  • Loading branch information
TKIPisalegacycipher committed Jan 16, 2024
1 parent 2467d8f commit e4673d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generator/generate_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,13 @@ def generate_action_batch_functions(
# Get metadata
tags = endpoint["tags"]
operation = endpoint["operationId"]
description = endpoint["summary"]
description = endpoint["description"]
summary = endpoint["summary"]

this_action = [
action
for action in batchable_actions
if action["summary"] == description
if action["summary"] == description or action["summary"] == summary
][0]

batch_operation = this_action["operation"]
Expand Down

0 comments on commit e4673d4

Please sign in to comment.