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

API swagger specification isn't a valid swagger file #403

Closed
2 tasks done
KtorZ opened this issue Jun 12, 2019 · 1 comment
Closed
2 tasks done

API swagger specification isn't a valid swagger file #403

KtorZ opened this issue Jun 12, 2019 · 1 comment
Assignees

Comments

@KtorZ
Copy link
Member

KtorZ commented Jun 12, 2019

Release Operating System Cause
next Windows & OSX & Linux) Configuration

Context

We have a hand-written swagger API specification here. However, this isn't a valid swagger structure for there are some attributes and parameters in the top-level document which swagger does not support.

Steps to Reproduce

  1. Run the spec through a validator tool (e.g. https://github.com/p1c2u/openapi-spec-validator or http://editor.swagger.io/).

Expected behavior

  1. The spec is free of any parsing or semantic errors

Actual behavior

  1. A lot of unexpected attributes errors are reported

Resolution Plan

  • See the feasibility of using an automated validation tool in CI
  • Attempt to fix errors by moving attributes under the definitions special key

PR

Number Base
#408 master

QA

@piotr-iohk
Copy link
Contributor

lgtm 👍

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

2 participants