{"id":"ipv6-format","version":"1.0.0","description":"Format 8 hextets or a 128-bit integer string as the RFC 5952 canonical compressed IPv6 address.","supported_operations":["ipv6 format","format ipv6 canonical","hextets or integer to ipv6"],"unsupported_operations":["IPv4-embedded output form","zone/scope IDs"],"semantics":["Input is exactly one of hextets or integer; unknown fields, both, or neither throw.","hextets is an array of exactly 8 JSON integers 0-65535.","integer is a canonical decimal string n with 0 <= n <= 340282366920938463463374607431768211455.","address is the RFC 5952 canonical form: lowercase hex, no leading zeros per group, and the leftmost longest run of two or more all-zero groups compressed once as \"::\" (no run under length 2 is compressed).","ipv6-format(ipv6-parse(a)) yields the canonical form of a for every valid IPv6 address a."],"limits":{"integer_max":"340282366920938463463374607431768211455","hextet_count":8},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"oneOf":[{"required":["hextets"],"properties":{"hextets":{"type":"array","minItems":8,"maxItems":8,"items":{"type":"integer","minimum":0,"maximum":65535}}}},{"required":["integer"],"properties":{"integer":{"type":"string","pattern":"^(0|[1-9][0-9]*)$","maxLength":39}}}]},"output_schema":{"type":"object","additionalProperties":false,"required":["address"],"properties":{"address":{"type":"string","maxLength":45}}},"examples":[{"input":{"hextets":[8193,3512,0,0,0,0,0,1]},"output":{"address":"2001:db8::1"}}],"execute_url":"/v1/tools/ipv6-format/versions/1.0.0/execute"}