Page MenuHomeDevCentral

Validate salt-tower pillar files with JSON Schema
Changes PlannedPublic

Authored by dereckson on Wed, Aug 5, 07:15.

Details

Reviewers
None
Summary

JSON Schema has been selected to offer validation in IDE.

The pillar files we validate are the pillar defined in tower.sls,
as we create new files for new servers or services.

Test Plan
  • New tests pass

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Error_tests/pillar/dbserver/test_postgresql.py:78E501flake8 E501
Unit
No Test Coverage
Branch
codex-pillar-tests
Build Status
Buildable 6779
Build 7067: arc lint + arc unit

Event Timeline

dereckson created this revision.

I wonder if T1681 couldn't host them too. If so:

"$id": "https://operations.nasqueron.org/schemas/pillar/certificates.schema.json",

should become:

"$id": "https://schema.nasqueron.org/operations/pillar/certificates.schema.json",

Models used:

  • GPT 5.5 (Codex, from JetBrains PyCharm) for the schema generation and the tests
  • Qwen 3.8 for code review