We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db58280 commit 29df9f2Copy full SHA for 29df9f2
1 file changed
generate-client.sh
@@ -142,16 +142,6 @@ generate() {
142
exit 1
143
}
144
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
-
155
# Run 1 — Java client (single class, no docs)
156
echo "Generating client for edition: $edition from $spec_file"
157
openapi-generator-cli generate \
0 commit comments