Repository navigation
feat: add JSON Schema for .providers.json - #561
Conversation
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
PR Summary by QodoAdd JSON Schema for .providers.json with docs and agent guidance Description
Diagram
High-Level Assessment
Files changed (5)
|
|
Warning Review limit reached
More reviews will be available in 29 minutes and 35 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (7)
WalkthroughAdds Changesproviders_schema.json, example file, README, and AI instructions consolidation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review by Qodo
Context used✅ Tickets:
🎫 feat: add JSON Schema for .providers.json✅ Compliance rules (platform):
49 rules 1.
|
…eference - Add providers_schema.json with full provider type definitions (vsphere, ovirt, openstack, openshift, ova) including copyoffload vendor-conditional fields - Update .providers.json.example with $schema reference - Add AGENTS.md rules for provider config key access and schema maintenance - Replace CLAUDE.md ↔ AGENTS.md symlink with @AGENTS.md reference - Update README.md with schema documentation Closes #560
6da69d5 to
58e9e96
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@providers_schema.json`:
- Around line 43-50: The schema's required array incorrectly marks credentials
as mandatory even though the copyoffload_migration.py utility allows these to be
provided via environment variables (COPYOFFLOAD_STORAGE_HOSTNAME,
COPYOFFLOAD_ESXI_HOST, etc.), causing false validation failures for users
relying on env vars. Remove the env-overridable credential fields
(storage_hostname, storage_username, storage_password) from the required arrays
at lines 43-50 and line 225 since schema validation should not enforce
runtime-resolved values. Additionally, the OpenShift provider constraint's then
block at line 375 lacks schema enforcement for its stated "no additional
properties" restriction. Add "additionalProperties": false to the then block at
line 375 to properly enforce this constraint.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: c6f6c892-fd64-4ea2-a769-eaa924cf6ed4
📒 Files selected for processing (6)
.providers.json.exampleAGENTS.mdAGENTS.mdCLAUDE.mdREADME.mdproviders_schema.json
|
Code review by qodo was updated up to the latest commit 58e9e96 |
- Restructure providerDefinition to use oneOf discriminated union - Remove env-overridable credentials from copyoffload required list - Fix README schema snippet to show full JSON object example - Add additionalProperties: false to OpenShift provider variant
|
@qodo-code-review[bot] The following review comments were reviewed and a decision was made:
|
Thanks — the review decisions line up with the diff:
Two items still look active in the index:
If you want, I can also help verify whether |
|
Code review by qodo was updated up to the latest commit 9b6c573 |
- Skip $schema key during .providers.json validation in CLI run command - Add isinstance(v, dict) guards to provider comprehensions - Fix OpenShift schema: use host instead of fqdn, add storage_class/verify_ssl/ca_bundle - Update .providers.json.example OpenShift section to match
Looking for bugs?Check back in a few minutes. Qodo's review agents are on it. |
|
@qodo-code-review[bot] The following review comments were reviewed and a decision was made:
|
Thanks — the diff now looks consistent with the review decisions.
So from my side, these look addressed. |
|
@qodo-code-review[bot] The following review comments were reviewed and a decision was made:
|
Looks good — those three items are addressed in the current diff:
If you want, I can also help review any remaining active findings. |
|
New container for ghcr.io/redhatqe/mtv-api-tests:latest published |
Description
Add a JSON Schema file (
providers_schema.json) for.providers.jsonto enable IDE autocomplete/validation and provide AI code reviewers with authoritative required vs optional field definitions.Changes
providers_schema.json— Full schema with discriminated union ontypefield:.providers.json.example— Added$schemapointer to raw GitHub URLAGENTS.md— Two new MUST rules:CLAUDE.md— Replaced symlink with@AGENTS.mdreference (Claude Code native feature)README.md— Added schema documentationCloses #560
Summary by CodeRabbit
New Features
.providers.jsonfilesDocumentation
.providers.jsondocumentation with schema and IDE support guidance