@Override
    public Schema stringShape(StringShape shape) {
        // String shapes with the mediaType trait must be base64 encoded.
        return shape.hasTrait(MediaTypeTrait.ID)
                ? schema.toBuilder().ref(null).type("string").format("byte").build()
                : schema;
    }
Creates an appropriate Schema for an input/output header parameters.

@param <T> Type of protocol trait to convert.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/protocols/HeaderSchemaVisitor.java