changedInput schema / properties / operation / description
Previous value: -"\"encode\" transforms text into the encoding; \"decode\" recovers text from an encoded value."New value: +"\"encode\" transforms text into the encoding; \"decode\" recovers the bytes from an encoded value."
addedInput schema / properties / outputEncoding
Added value: +{
+ "description": "Decode only: how the recovered bytes are returned. utf8 (used when omitted) returns text and fails when the bytes are not valid UTF-8; hex and base64 return the raw bytes re-encoded, losslessly. Rejected when operation is \"encode\".",
+ "enum": [
+ "utf8",
+ "hex",
+ "base64"
+ ],
+ "type": "string"
+}
changedInput schema / properties / value / description
Previous value: -"The value to transform — raw text for encode, an encoded string for decode."New value: +"The value to transform — raw text for encode, an encoded string for decode. Whitespace is ignored when decoding hex, base64, or base64url; a url value is taken literally."
changedOutput schema / properties / error / properties / data / properties / reason / description
Previous value: -"Machine-readable failure mode. Declared by this tool: `decode_failed`: operation is \"decode\" but value is malformed for the chosen encoding. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `decode_failed`: operation is \"decode\" but value is malformed for the chosen encoding. `decode_not_utf8`: operation is \"decode\", outputEncoding is utf8 (or omitted), and the decoded bytes are not valid UTF-8 text. `output_encoding_not_applicable`: operation is \"encode\" and outputEncoding was supplied; it selects how decoded bytes are returned. Other values are possible when a failure originates below the handler."
changedOutput schema / properties / error / properties / data / properties / reason / examples
Previous value: -[
- "decode_failed"
-]New value: +[
+ "decode_failed",
+ "decode_not_utf8",
+ "output_encoding_not_applicable"
+]
addedOutput schema / properties / outputEncoding
Added value: +{
+ "description": "How result renders the decoded bytes: utf8 text, hex, or base64. Present for operation \"decode\".",
+ "enum": [
+ "utf8",
+ "hex",
+ "base64"
+ ],
+ "type": "string"
+}
changedOutput schema / properties / result / description
Previous value: -"The transformed value (encoded text, or the decoded original)."New value: +"The transformed value: encoded text for encode; for decode, the recovered bytes as UTF-8 text, hex, or base64 per outputEncoding."