addedInput schema / properties
Added value: +{
+ "delimiter": {
+ "default": ",",
+ "description": "Literal delimiter used only when splitType is delimiter; an empty string returns the text unsplit.",
+ "type": "string"
+ },
+ "maxSplits": {
+ "default": 0,
+ "description": "Maximum number of splits for delimiter/regex modes; 0 means no limit. Ignored for lines/words/characters.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "regex": {
+ "default": "",
+ "description": "Pattern used only when splitType is regex; accepts a bare pattern or PHP-style /pattern/flags; an empty string returns the text unsplit.",
+ "type": "string"
+ },
+ "removeEmpty": {
+ "default": true,
+ "description": "Drop empty parts after splitting (for characters mode, also drops spaces).",
+ "type": "boolean"
+ },
+ "splitType": {
+ "default": "lines",
+ "description": "Split method. lines splits on newlines; words on whitespace runs; characters into single chars; delimiter on the literal delimiter value; regex on the regex pattern.",
+ "enum": [
+ "lines",
+ "words",
+ "characters",
+ "delimiter",
+ "regex"
+ ],
+ "type": "string"
+ },
+ "text": {
+ "description": "The text to split. Required and must be non-empty; a blank value returns a 400 error.",
+ "type": "string"
+ },
+ "trimElements": {
+ "default": true,
+ "description": "Trim leading/trailing whitespace from each part (ignored for characters mode).",
+ "type": "boolean"
+ }
+}
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "options": {
+ "description": "The effective options echoed in camelCase.",
+ "properties": {
+ "delimiter": {
+ "description": "Delimiter used.",
+ "type": "string"
+ },
+ "maxSplits": {
+ "description": "Split cap applied.",
+ "type": "integer"
+ },
+ "regex": {
+ "description": "Regex pattern used.",
+ "type": "string"
+ },
+ "removeEmpty": {
+ "description": "Whether empty parts were dropped.",
+ "type": "boolean"
+ },
+ "splitType": {
+ "description": "Split method used.",
+ "type": "string"
+ },
+ "trimElements": {
+ "description": "Whether parts were trimmed.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "result": {
+ "description": "The resulting parts after splitting and applying remove-empty/trim options.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "stats": {
+ "description": "Metrics for the original text and the result.",
+ "properties": {
+ "original": {
+ "description": "Metrics of the input text before splitting.",
+ "properties": {
+ "characters": {
+ "description": "Character count of the input (same as length).",
+ "type": "integer"
+ },
+ "length": {
+ "description": "Character count of the input.",
+ "type": "integer"
+ },
+ "lines": {
+ "description": "Newline-delimited line count of the input.",
+ "type": "integer"
+ },
+ "words": {
+ "description": "Count of alphabetic word runs in the input.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "result": {
+ "description": "Metrics of the produced parts.",
+ "properties": {
+ "avg_length": {
+ "description": "Mean part length, rounded to one decimal.",
+ "type": "number"
+ },
+ "elements": {
+ "description": "Number of parts produced.",
+ "type": "integer"
+ },
+ "max_length": {
+ "description": "Longest part length.",
+ "type": "integer"
+ },
+ "min_length": {
+ "description": "Shortest part length.",
+ "type": "integer"
+ },
+ "total_length": {
+ "description": "Sum of the character lengths of all parts.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "settings": {
+ "description": "The effective split settings (snake_case).",
+ "properties": {
+ "delimiter": {
+ "description": "Delimiter used.",
+ "type": "string"
+ },
+ "max_splits": {
+ "description": "Split cap applied (0 = none).",
+ "type": "integer"
+ },
+ "regex": {
+ "description": "Regex pattern used.",
+ "type": "string"
+ },
+ "remove_empty": {
+ "description": "Whether empty parts were dropped.",
+ "type": "boolean"
+ },
+ "split_type": {
+ "description": "Split method used.",
+ "type": "string"
+ },
+ "trim_elements": {
+ "description": "Whether parts were trimmed.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "success": {
+ "description": "Always true on success.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}