private void updateFloatFormat(Schema.Builder builder, JsonSchemaConfig config, String format) {
        if (config.getSupportNonNumericFloats()) {
            List<Schema> newOneOf = new ArrayList<>();
            for (Schema schema : builder.build().getOneOf()) {
                if (schema.getType().isPresent() && schema.getType().get().equals("number")) {
                    newOneOf.add(schema.toBuilder().format(format).build());
                } else {
                    newOneOf.add(schema);
                }
            }
            builder.oneOf(newOneOf);
        } else {
            builder.format(format);
        }
    }
Applies OpenAPI extensions to a {@link Schema} using configuration settings
found in {@link OpenApiConfig}.

<p>Note: the properties and features added by this mapper can be removed using
{@link OpenApiConfig#setDisableFeatures}.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/OpenApiJsonSchemaMapper.java