Put contentEncoding back on every hex and base64 string schema.
@fastify/swagger drops the keyword while converting route schemas
(base64 becomes format: byte), but OpenAPI 3.1 is JSON Schema
2020-12, where contentEncoding is how a generator learns a string's
codec. Returns a copy.
Put
contentEncodingback on every hex and base64 string schema. @fastify/swagger drops the keyword while converting route schemas (base64 becomesformat: byte), but OpenAPI 3.1 is JSON Schema 2020-12, wherecontentEncodingis how a generator learns a string's codec. Returns a copy.