mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 11:39:26 +01:00
- system.ts: Add maxLength(100) and alphanumeric/hyphen/underscore regex to service_name fields - system.ts: Add maxLength(50) and semver/Docker tag regex to target_version field - rag.ts: Add maxLength(500) to filePath field - rag_controller.ts: Add 50MB file upload size limit and validation error handling - settings_controller.ts: Validate getSetting() key parameter against KV_STORE_SCHEMA at runtime https://claude.ai/code/session_01JFvpTYgm8GiE4vJ4cJKsFx
14 lines
245 B
TypeScript
14 lines
245 B
TypeScript
import vine from '@vinejs/vine'
|
|
|
|
export const getJobStatusSchema = vine.compile(
|
|
vine.object({
|
|
filePath: vine.string().maxLength(500),
|
|
})
|
|
)
|
|
|
|
export const deleteFileSchema = vine.compile(
|
|
vine.object({
|
|
source: vine.string(),
|
|
})
|
|
)
|