tech.jhipster.lite.project.infrastructure.primary.RestModuleToApply Maven / Gradle / Ivy
package tech.jhipster.lite.project.infrastructure.primary;
import io.swagger.v3.oas.annotations.media.Schema;
import tech.jhipster.lite.project.domain.ModuleSlug;
@Schema(name = "ModuleToApply", description = "Information for a module to apply")
record RestModuleToApply(@Schema(description = "Slug of the module to apply") String slug) {
public static RestModuleToApply from(ModuleSlug moduleSlug) {
return new RestModuleToApply(moduleSlug.get());
}
}