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

umputun / stash / 19776900537
84%

Build:
DEFAULT BRANCH: master
Ran 29 Nov 2025 01:17AM UTC
Jobs 1
Files 17
Run time 1min
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

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.

25 of 43 new or added lines in 3 files covered. (58.14%)

4 existing lines in 1 file now uncovered.

2164 of 2641 relevant lines covered (81.94%)

11.33 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
78.57
app/server/verify.go
12
0.0
app/server/internal/schema/main.go

Uncovered Existing Lines

Lines Coverage ∆ File
4
90.1
-0.95% app/server/auth.go
Jobs
ID Job ID Ran Files Coverage
1 19776900537.1 29 Nov 2025 01:17AM UTC 17
81.94
GitHub Action Run
Source Files on build 19776900537
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e2fcce2f on github
  • Prev Build on master (#19773332804)
  • Next Build on master (#19776928671)
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