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

Fix & Update: file linting: Adds support for extends keyword and upgrades vacuum lib #1269

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

rspurgeon
Copy link
Collaborator

@rspurgeon rspurgeon commented Apr 10, 2024

  • Adds better support for linting OAS in addition to existing deck file linting.
  • Upgrades the vacuum dependency to 0.9.11
  • Adds more linting integration tests

@rspurgeon rspurgeon requested a review from a team April 10, 2024 21:25
cmd/file_lint.go Outdated Show resolved Hide resolved
@rspurgeon rspurgeon marked this pull request as draft April 10, 2024 21:39
@rspurgeon rspurgeon changed the title Fix & Update: file linting: Adds support for extends keyword and upgr… Fix & Update: file linting: Adds support for extends keyword and upgrades vacuum lib Apr 10, 2024
@rspurgeon rspurgeon marked this pull request as ready for review April 11, 2024 01:17
mheap
mheap previously approved these changes Apr 12, 2024
cmd/file_lint.go Outdated
Comment on lines 69 to 72
err := json.Unmarshal(fileBytes, &contents)
if err != nil {
err = yaml.Unmarshal(fileBytes, &contents)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just use a YAML decoder, since JSON is also valid YAML.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, changed

@rspurgeon rspurgeon merged commit 2aefd73 into main Apr 16, 2024
3 of 39 checks passed
@rspurgeon rspurgeon deleted the lint-fix-add-oas branch April 16, 2024 00:44
@GGabriele
Copy link
Collaborator

@rspurgeon FYI: the CI of this PR was failing due to a race condition in the vacuum lib. I'm now skipping the lint tests since upgrading the dependency doesn't seem to help: #1275

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.

4 participants