api.bitbucket.org/swagger.json is invalid

Issue #17601 new
Jesse Yowell
staff created an issue
swagger-codegen validate -i https://api.bitbucket.org/swagger.json

or

openapi-generator validate https://api.bitbucket.org/swagger.json

These errors seem to be causing code generation to fail, even when passing --skip-validate-spec.

Comments (1)

  1. Praneet Loke

    I see that this issue is still unassigned. It would be nice to have a valid swagger spec, which will make things easier to work with your API. Editing the swagger spec on Swagger Hub is not pleasant either. Swagger Hub is too slow given the size of the Bitbucket spec.

    Some errors that I noticed:

    • Parameter {username} seems to be repeated in some endpoints causing validation errors
    • /user/emails is missing the response body for 200 status code, which causes the codegen to assume that there is no valid response for the endpoint and hence generates an API operation that only returns an Error.
  2. Log in to comment