mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-04-18 21:08:05 -04:00
26 lines
817 B
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
|