Skip to content

Voice Lint Live

POST
/api/divinity/authored-library/voice-lint

Lint raw variant text for the live editor (M9).

Returns every violation with char-offset span info so the editor can underline the exact substring. Cheap (<1ms for typical variant lengths) so the editor can call it debounced on keystroke.

AuthoredLibraryVoiceLintRequest

Payload for the live variant-editor lint endpoint (M9).

The editor calls this debounced-as-you-type to show inline lint violations before save. Accepts raw variant text without needing a target situation/variant id.

object
text
required
Text
string

Successful Response

AuthoredLibraryVoiceLintLiveResponse

Response body for POST /voice-lint (live editor lint).

object
violations
required
Violations
Array<object>
AuthoredLibraryVoiceLintLiveIssue

Single voice-lint violation for the live editor path (no id context).

object
ruleId
required
Ruleid
string
message
required
Message
string
spanStart
required
Spanstart
integer
spanEnd
required
Spanend
integer

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object