Skip to content

Commit e4673d4

Browse files
Update generator for batch actions
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.
1 parent 2467d8f commit e4673d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

generator/generate_library.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,13 @@ def generate_action_batch_functions(
589589
# Get metadata
590590
tags = endpoint["tags"]
591591
operation = endpoint["operationId"]
592-
description = endpoint["summary"]
592+
description = endpoint["description"]
593+
summary = endpoint["summary"]
593594

594595
this_action = [
595596
action
596597
for action in batchable_actions
597-
if action["summary"] == description
598+
if action["summary"] == description or action["summary"] == summary
598599
][0]
599600

600601
batch_operation = this_action["operation"]

0 commit comments

Comments
 (0)