Files
profilarr/docs/api/v1/paths/regex.yaml

26 lines
817 B
YAML

validate:
post:
operationId: validateRegex
summary: Validate a .NET regex pattern
description: |
Validates a regex pattern using the .NET regex engine (via the parser service).
This matches the exact validation Radarr and Sonarr perform when importing custom formats.
If the parser service is offline, returns { valid: true } to avoid blocking saves.
tags:
- Regex
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/regex.yaml#/ValidateRegexRequest'
responses:
'200':
description: Validation result
content:
application/json:
schema:
$ref: '../schemas/regex.yaml#/ValidateRegexResponse'
'400':
description: Missing pattern