public static String getSpecificationExtensionName(
            ShapeId metaTraitId,
            SpecificationExtensionTrait specificationExtensionTrait
    ) {
        return specificationExtensionTrait.getAs()
                .orElse("x-" + metaTraitId.toString().replaceAll("[.#]", "-"));
    }
Gets the specification extension name for a given meta trait.

Either an explicitly configured extension name in specificationExtensionTrait, or a normalization of the shape
ID. The normalization replaces all "." and "#" in a shapeId to "-".

@param metaTraitId Trait shape to get the extension name.
@return Extension name for the given trait shape.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/OpenApiUtils.java