addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / bitWidth / default
Added value: +8
addedInput schema / properties / bitWidth / description
Added value: +"Fixed width for signed (two's-complement) interpretation. Must be one of the enum values when numberType is 'signed'; ignored for unsigned."
addedInput schema / properties / bitWidth / enum
Added value: +[
+ 8,
+ 16,
+ 32,
+ 64
+]
addedInput schema / properties / hexOptions / additionalProperties
Added value: +false
addedInput schema / properties / hexOptions / description
Added value: +"Optional output formatting for decimal-to-hex (ignored for hex-to-decimal)."
addedInput schema / properties / hexOptions / properties / padWidth / default
Added value: +4
addedInput schema / properties / hexOptions / properties / padWidth / description
Added value: +"Target length for zero-padding when padding is true."
addedInput schema / properties / hexOptions / properties / padding / default
Added value: +false
addedInput schema / properties / hexOptions / properties / padding / description
Added value: +"Left-pad the hex output with zeros to padWidth."
addedInput schema / properties / hexOptions / properties / prefix / default
Added value: +false
addedInput schema / properties / hexOptions / properties / prefix / description
Added value: +"Prepend \"0x\" to the hexadecimal output."
addedInput schema / properties / hexOptions / properties / uppercase / default
Added value: +true
addedInput schema / properties / hexOptions / properties / uppercase / description
Added value: +"Emit hex digits A-F uppercase; false emits a-f lowercase."
removedInput schema / properties / hexOptions / required
Removed value: -[
- "prefix",
- "uppercase",
- "padding",
- "padWidth"
-]
addedInput schema / properties / input / description
Added value: +"The number to convert. For decimal-to-hex, a whole decimal value with optional sign (e.g. \"255\" or \"-42\"). For hex-to-decimal, hex digits 0-9/A-F with an optional 0x prefix (e.g. \"FF\" or \"0x1a\"). Leading/trailing whitespace is trimmed; must not be blank."
addedInput schema / properties / input / minLength
Added value: +1
addedInput schema / properties / mode / description
Added value: +"Conversion direction."
addedInput schema / properties / mode / enum
Added value: +[
+ "decimal-to-hex",
+ "hex-to-decimal"
+]
addedInput schema / properties / numberType / default
Added value: +"unsigned"
addedInput schema / properties / numberType / description
Added value: +"Interpretation of the value. 'signed' enables two's-complement at the given bitWidth; 'unsigned' treats it as non-negative."
addedInput schema / properties / numberType / enum
Added value: +[
+ "unsigned",
+ "signed"
+]
changedInput schema / required
Previous value: -[
- "mode",
- "input",
- "numberType",
- "bitWidth",
- "hexOptions"
-]New value: +[
+ "mode",
+ "input"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "error": {
+ "description": "Error message (present when success is false).",
+ "type": "string"
+ },
+ "result": {
+ "description": "The conversion result (present when success is true).",
+ "properties": {
+ "bitWidth": {
+ "description": "Echoed bit width used for signed interpretation.",
+ "type": "integer"
+ },
+ "conversionSteps": {
+ "description": "Ordered step-by-step breakdown of the conversion.",
+ "items": {
+ "properties": {
+ "calculation": {
+ "description": "The arithmetic for this step.",
+ "type": "string"
+ },
+ "description": {
+ "description": "What this step does.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "hexDigitCount": {
+ "description": "Number of hex digits parsed (hex-to-decimal only).",
+ "type": "integer"
+ },
+ "hexOptions": {
+ "description": "Echoed hex formatting options after defaults were applied.",
+ "properties": {
+ "padWidth": {
+ "description": "Zero-padding target length.",
+ "type": "integer"
+ },
+ "padding": {
+ "description": "Whether zero-padding was applied.",
+ "type": "boolean"
+ },
+ "prefix": {
+ "description": "Whether a 0x prefix was added.",
+ "type": "boolean"
+ },
+ "uppercase": {
+ "description": "Whether hex digits are uppercase.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "input": {
+ "description": "The trimmed input value as supplied.",
+ "type": "string"
+ },
+ "mode": {
+ "description": "Echoed conversion direction.",
+ "type": "string"
+ },
+ "numberType": {
+ "description": "Echoed number interpretation (unsigned or signed).",
+ "type": "string"
+ },
+ "output": {
+ "description": "The converted value as a string (formatted hex, or decimal).",
+ "type": "string"
+ },
+ "rawHex": {
+ "description": "Unformatted hex digits before prefix/padding/case (decimal-to-hex only).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "success": {
+ "description": "True when conversion succeeded; false on validation error.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}