/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/api/doc_overrides.go
11 строк
432 B
Michael Mayer
API: Add const, func, and struct comments for easier troubleshooting
30 сен 2025, 23:02
30 сен 2025, 23:02
983cbb5
Код
Авторство
О чём код?
package api import "time" // SwaggerTimeDuration overrides the generated schema for time.Duration to avoid unstable enums // from the standard library constants (Nanosecond, Minute, etc.). Using a simple integer schema is // accurate (nanoseconds) and deterministic. // // @name time.Duration // @description Duration in nanoseconds (int64). Examples: 1000000000 (1s), 60000000000 (1m). type SwaggerTimeDuration = time.Duration