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

Linting the OpenApi specification with spectral #45

Open
wants to merge 9 commits into
base: WIP-v1
Choose a base branch
from

Conversation

pierrecamilleri
Copy link
Collaborator

@pierrecamilleri pierrecamilleri commented Oct 5, 2022

Adds spectral to lint the OpenApi specification as a GitHub Action on each pull request.

The errors and warnings have been resolved, mainly :

  • There was an error in a "default" property that was not complying with the expected type
  • Error codes should be strings according to the OpenAPI specification.

In addition, corrected unsupported type/formats pairs that were not caught by spectral : number/long should be replaced by integer/int64 according to the specification (paragraph "Data types")

@pierrecamilleri pierrecamilleri marked this pull request as ready for review October 5, 2022 10:01
@pierrecamilleri pierrecamilleri changed the base branch from main to WIP-v1 October 10, 2022 08:17
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

Successfully merging this pull request may close these issues.

1 participant