diff --git a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt index cad8638..edb72b0 100644 --- a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt +++ b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt @@ -151,7 +151,7 @@ class RecipeMarkdownGenerator : Runnable { val recipeOptions = TreeSet() for (recipeOption in recipeDescriptor.options) { val name = recipeOption.name as String - val ro = RecipeOption(name, recipeOption.type, recipeOption.example, recipeOption.isRequired) + val ro = RecipeOption(name, recipeOption.type, recipeOption.isRequired) recipeOptions.add(ro) } diff --git a/src/main/kotlin/org/openrewrite/RecipeOption.kt b/src/main/kotlin/org/openrewrite/RecipeOption.kt index fce26d4..705a2bd 100644 --- a/src/main/kotlin/org/openrewrite/RecipeOption.kt +++ b/src/main/kotlin/org/openrewrite/RecipeOption.kt @@ -5,14 +5,11 @@ import com.fasterxml.jackson.annotation.JsonIgnore data class RecipeOption( val name: String, val type: String, - @JsonIgnore - val example: String?, val required: Boolean ): Comparable { override fun compareTo(other: RecipeOption): Int { return compareBy(RecipeOption::name) .then(compareBy(RecipeOption::type)) - .then(compareBy(RecipeOption::example)) .then(compareBy(RecipeOption::required)) .compare(this, other) }