This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
Transaction Names from Swagger are not unique. #558
Comments
@netmilk Is the workaround also a proposal for a fix? In other words, if Dredd gets fixed, should it generate following transaction names?
The Another question: Do we want to consider this to be a bug fix or a breaking change? Because it is breaking change and can break people's existing hooks. |
Discussed several things with @netmilk in person and the outcome is:
The final form of the names discussed is:
|
Reminder for myself: Closing this will also need documentation update of all Swagger examples. |
honzajavorek
added a commit
to apiaryio/dredd-transactions
that referenced
this issue
Aug 25, 2016
According to a proposal in apiaryio/dredd#558 (comment)
This was referenced Aug 25, 2016
honzajavorek
added a commit
that referenced
this issue
Sep 8, 2016
BREAKING CHANGE: Users of Dredd hooks will have to change how they address transactions - e.g. '/112 > GET' will have to be changed to '/112 > GET > 200 > application/json' See apiaryio/dredd-transactions#63 for details. Closes #558.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Skipped Transaction Names generated from oneSwagger/OAI operation with different status codes and content-types are not unique.
dredd swagger.yml http://localhsot --names
Results in following:Please notice the second line. It's not even a
transaction.name
buttransaction.id
(reported here #559)As a workaround, you can use the following hooks code. The transaction names will have appended status code and content-type to be unique within a Swagger/OAI operation.
The text was updated successfully, but these errors were encountered: