Skip to content

SP-10: Add config validate command and --validate flag on config import#333

Open
Buqeta (Buqeta) wants to merge 4 commits intomainfrom
sp-10-add-new-command-an-option
Open

SP-10: Add config validate command and --validate flag on config import#333
Buqeta (Buqeta) wants to merge 4 commits intomainfrom
sp-10-add-new-command-an-option

Conversation

@Buqeta
Copy link
Copy Markdown
Contributor

@Buqeta Buqeta (Buqeta) commented Apr 9, 2026

Description

  • Add --validate option to config import that passes performValidation=true query param to pacman's batch import endpoint, enabling schema validation during import
  • Add new config validate command (content-cli config validate --packageKey <key>) that calls POST /api/core/packages/{packageKey}/validate with configurable --layers (default: SCHEMA) and optional --nodeKeys scoping
  • Human-readable output by default; --json flag writes the full validation response to a report file

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Made with Cursor

…nfig import

- Add --performValidation option to `config import` that passes `performValidation=true`
  query param to pacman's batch import endpoint
- Add new `config validate` command that calls POST /api/core/packages/{packageKey}/validate
  with configurable layers and optional node key scoping
- Human-readable output by default, --json flag writes full response to file

Includes-AI-Code: true
Made-with: Cursor
@Buqeta Buqeta (Buqeta) requested a review from a team as a code owner April 9, 2026 12:16
Includes-AI-Code: true
Made-with: Cursor
@Buqeta Buqeta (Buqeta) changed the title SP-10: Add config validate command and --performValidation flag on config import SP-10: Add config validate command and --validate flag on config import Apr 9, 2026
Keep printValidationResult output, remove progress and report file messages.

Includes-AI-Code: true
Made-with: Cursor
Includes-AI-Code: true
Made-with: Cursor
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 9, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
70.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant