Skip to content

Commit 7cee925

Browse files
Revert "Add duplicate operation ids validation"
This reverts commit a1bc17f.
1 parent 3741dfd commit 7cee925

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

generate-client.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,6 @@ generate() {
142142
exit 1
143143
}
144144

145-
# Detect duplicate operationIds (ThingsBoard's spec generator appends _1, _2, etc.)
146-
local duplicates
147-
duplicates=$(grep -o '"operationId" *: *"[^"]*"' "$spec_file" | sed 's/.*: *"//;s/"//' | grep -E '_[0-9]+$' || true)
148-
if [ -n "$duplicates" ]; then
149-
echo "Error: spec contains duplicate operationIds (suffixed by ThingsBoard):"
150-
echo "$duplicates" | sed 's/^/ /'
151-
echo "Fix the @ApiOperation annotations in ThingsBoard source to use unique names."
152-
exit 1
153-
fi
154-
155145
# Run 1 — Java client (single class, no docs)
156146
echo "Generating client for edition: $edition from $spec_file"
157147
openapi-generator-cli generate \

0 commit comments

Comments
 (0)