Skip to content

Conversation

reversearrow
Copy link
Contributor

@reversearrow reversearrow commented Apr 10, 2025

This PR introduces a cmd tool for quickly validating OpenAPI documents via the CLI.

It supports a --regexengine flag, allowing users to specify custom regex parsing options. This enables validation of OpenAPI documents using different regex engines and flags depending on their needs.

Copy link

codecov bot commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 0% with 91 lines in your changes missing coverage. Please review.

Project coverage is 96.89%. Comparing base (224827e) to head (a0c6422).
Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
cmd/validate/main.go 0.00% 91 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #137      +/-   ##
==========================================
- Coverage   99.68%   96.89%   -2.79%     
==========================================
  Files          29       30       +1     
  Lines        3167     3258      +91     
==========================================
  Hits         3157     3157              
- Misses         10      101      +91     
Flag Coverage Δ
unittests 96.89% <0.00%> (-2.79%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@reversearrow reversearrow force-pushed the feat/libopeapi_cmd_tool branch from c7fa8e2 to b1c57fa Compare April 10, 2025 15:58
@reversearrow reversearrow changed the title feat: cli cmd to validate single oas spec feat: cli cmd to validate oas spec Apr 10, 2025
@reversearrow reversearrow force-pushed the feat/libopeapi_cmd_tool branch from b1c57fa to 722c7fb Compare April 10, 2025 20:04
@reversearrow reversearrow force-pushed the feat/libopeapi_cmd_tool branch from 722c7fb to 6405167 Compare April 10, 2025 20:05
@daveshanley
Copy link
Member

Would you be able to add some comments / docs to the main function? explain what it is etc?

@reversearrow reversearrow force-pushed the feat/libopeapi_cmd_tool branch from ec463e4 to a0c6422 Compare April 14, 2025 14:03
@reversearrow
Copy link
Contributor Author

Thanks for the review @daveshanley, updated main with the comment here a0c6422

Copy link
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

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

LGTM thank you!

@daveshanley daveshanley merged commit c322bf8 into pb33f:main Apr 14, 2025
2 of 4 checks passed
@reversearrow reversearrow deleted the feat/libopeapi_cmd_tool branch April 15, 2025 00:26
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.

2 participants