io.github.springwolf.asyncapi.v3.model.ReferenceUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springwolf-asyncapi Show documentation
Show all versions of springwolf-asyncapi Show documentation
Springwolf implementation of the AsyncApi specification
// SPDX-License-Identifier: Apache-2.0
package io.github.springwolf.asyncapi.v3.model;
public class ReferenceUtil {
private static final String FORBIDDEN_ID_CHARACTER = "/";
public static String toValidId(String name) {
return name.replaceAll(FORBIDDEN_ID_CHARACTER, "_");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy