Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate keys in swagger.yaml #87

Open
davidyuk opened this issue Mar 31, 2022 · 0 comments
Open

Duplicate keys in swagger.yaml #87

davidyuk opened this issue Mar 31, 2022 · 0 comments

Comments

@davidyuk
Copy link
Member

responses:
'200':
description: 'ACI for contract'
schema:
$ref: '#/definitions/ACI'
'400':
description: Invalid input
schema:
$ref: '#/definitions/Error'
'400':
description: Compiler errors
schema:
$ref: '#/definitions/CompilerErrors'

Both responses are defined for 400 code, and as I get, only the last one appears in the resulting json file.

https://compiler.aeternity.io/api

        "responses": {
          "200": {
            "description": "ACI for contract",
            "schema": {
              "$ref": "#/definitions/ACI"
            }
          },
          "400": {
            "description": "Compiler errors",
            "schema": {
              "$ref": "#/definitions/CompilerErrors"
            }
          }
        }

swagger.yaml contains multiple duplications like this, them prevents using the swagger file in AutoRest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant