-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add OpenAPI schema validator with @seriousme/openapi-schema-validator #29
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
Conversation
Co-authored-by: abraham <[email protected]>
|
Run |
Co-authored-by: abraham <[email protected]>
Fixed the OAuth2 security scheme validation issues by adding the required |
|
run format command |
Co-authored-by: abraham <[email protected]>
Format command has been run successfully. The code has been formatted according to prettier configuration. Commit: 54648cc |
|
Fix the schema generation so the validation succeeds |
Co-authored-by: abraham <[email protected]>
Fixed the schema generation issues. The validation now succeeds with
Commit: 967ef98 |
This PR adds OpenAPI schema validation to the project using
@seriousme/openapi-schema-validatoras requested in the issue.Changes Made
@seriousme/openapi-schema-validatoras a dev dependencynpm run validatecommand that validatesdist/schema.jsonWorkflow Integration
The CI workflow now includes these steps in order:
Usage
Notes
The validation currently identifies real schema issues in the OAuth2 security scheme configuration that should be addressed in a future PR. The validator is working correctly and will fail CI builds when schema validation errors exist, ensuring schema quality going forward.
Example validation output:
{ "valid": false, "errors": [ { "instancePath": "/components/securitySchemes/OAuth2", "message": "must have required property 'flows'" } ] }Fixes #26.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.