• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / stash / 19776900537 / 1
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 29 Nov 2025 01:17AM UTC
Files 17
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Nov 2025 01:14AM UTC coverage: 81.939% (-0.5%) from 82.487%
19776900537.1

push

github

web-flow
Add JSON schema validation for auth config (#19)

* feat(auth): add JSON schema validation for auth config

Add embedded JSON schema validation for stash-auth.yml configuration file.
Invalid configs now fail at startup with descriptive error messages.

- Add jsonschema struct tags to AuthConfig, UserConfig, TokenConfig, PermissionConfig
- Create schema generator using invopop/jsonschema (go:generate)
- Add verify.go with embedded schema validation using santhosh-tekuri/jsonschema
- Support all access value forms: r, read, w, write, rw, readwrite, read-write
- Add unit tests with testdata fixtures and integration test
- Update documentation (README.md, CLAUDE.md)

* refactor(auth): move schema generation to testable function

Move schema generation logic from internal/schema/main.go to
GenerateAuthSchema() in verify.go for better test coverage.

2164 of 2641 relevant lines covered (81.94%)

11.33 hits per line

Source Files on job 19776900537.1
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19776900537
  • e2fcce2f on github
  • Prev Job for on master (#19773332804.1)
  • Next Job for on master (#19776928671.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc