addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / action / default
Added value: +"format"
addedInput schema / properties / action / description
Added value: +"format = readable indentation; minify = strip whitespace (and comments unless preserved). Any value other than \"minify\" is treated as format."
addedInput schema / properties / action / enum
Added value: +[
+ "format",
+ "minify"
+]
addedInput schema / properties / code / description
Added value: +"Source code to process (alias: input). Must be non-empty."
addedInput schema / properties / code / examples
Added value: +[
+ "body{color:red;margin:0;}"
+]
addedInput schema / properties / language / default
Added value: +"html"
addedInput schema / properties / language / description
Added value: +"Source dialect. Unknown values fall back to html."
addedInput schema / properties / language / enum
Added value: +[
+ "html",
+ "css",
+ "javascript"
+]
addedInput schema / properties / options / additionalProperties
Added value: +false
addedInput schema / properties / options / description
Added value: +"Formatting/minifying options."
addedInput schema / properties / options / properties / indentSize / default
Added value: +"4"
addedInput schema / properties / options / properties / indentSize / description
Added value: +"Spaces per indent level (format only); the string \"tab\" uses a tab character."
addedInput schema / properties / options / properties / indentSize / examples
Added value: +[
+ "4",
+ "tab"
+]
changedInput schema / properties / options / properties / indentSize / type
Previous value: -"string"New value: +[
+ "string",
+ "integer"
+]
addedInput schema / properties / options / properties / maxLineLength / default
Added value: +100
addedInput schema / properties / options / properties / maxLineLength / description
Added value: +"Advisory max line length (accepted but does not hard-wrap output)."
addedInput schema / properties / options / properties / preserveComments / default
Added value: +true
addedInput schema / properties / options / properties / preserveComments / description
Added value: +"Keep comments when minifying. Ignored when action is format."
removedInput schema / properties / options / required
Removed value: -[
- "indentSize",
- "maxLineLength",
- "preserveComments"
-]
changedInput schema / required
Previous value: -[
- "code",
- "language",
- "action",
- "options"
-]New value: +[
+ "code"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "action": {
+ "description": "Action actually applied.",
+ "enum": [
+ "format",
+ "minify"
+ ],
+ "type": "string"
+ },
+ "input": {
+ "description": "The original code, echoed back.",
+ "type": "string"
+ },
+ "language": {
+ "description": "Language actually used (post-fallback).",
+ "enum": [
+ "html",
+ "css",
+ "javascript"
+ ],
+ "type": "string"
+ },
+ "output": {
+ "description": "The formatted or minified result.",
+ "type": "string"
+ },
+ "statistics": {
+ "description": "Size and line metrics comparing input to output.",
+ "properties": {
+ "compressionRatio": {
+ "description": "Percent size reduction for minify; null when action is format.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "originalLines": {
+ "description": "Newline-split line count of the input.",
+ "type": "integer"
+ },
+ "originalSize": {
+ "description": "Input length in characters.",
+ "type": "integer"
+ },
+ "processedLines": {
+ "description": "Newline-split line count of the output.",
+ "type": "integer"
+ },
+ "processedSize": {
+ "description": "Output length in characters.",
+ "type": "integer"
+ },
+ "sizeDifference": {
+ "description": "processedSize minus originalSize (negative when smaller).",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+}