You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -164,8 +174,8 @@ A client for operations. We're currently using the `apis[tag][operationId]:Execu
164
174
165
175
OperationId's are meant to be unique within spec, if they're not we do the following:
166
176
- If a tag is absent, we use `default` as the internal tag
167
-
- If an operationId is missing, we deduce it from the http method and path, i.e. `${method}-${path}`
168
-
- If an operationId is duplicated across all operationIds of the spec, we suffix it with \_%d
177
+
- If an operationId is missing, we deduce it from the http method and path, i.e. `${method}${path}`, with non-alphanumeric characters escaped to `_`. See these tests ([1](https://github.com/swagger-api/swagger-js/blob/7da5755fa18791cd114ecfc9587dcd1b5c58ede1/test/helpers.js#L7), [2](https://github.com/swagger-api/swagger-js/blob/7da5755fa18791cd114ecfc9587dcd1b5c58ede1/test/helpers.js#L77)) for examples.
178
+
- If an operationId is duplicated across all operationIds of the spec, we rename all of them with numbers after the ID to keep them unique. You should not rely on this, as the renaming is non-deterministic. See [this test](https://github.com/swagger-api/swagger-js/blob/7da5755fa18791cd114ecfc9587dcd1b5c58ede1/test/helpers.js#L127) for an example.
0 commit comments