瀏覽代碼

Fix saving out a helper function's result.

Sam Jaffe 5 年之前
父節點
當前提交
93bb52572f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/lombok/org/leumasjaffe/recipe/model/RecipeComponent.java

+ 3 - 0
src/main/lombok/org/leumasjaffe/recipe/model/RecipeComponent.java

@@ -3,6 +3,9 @@ package org.leumasjaffe.recipe.model;
 import java.util.Collection;
 import java.util.stream.Stream;
 
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
+@JsonIgnoreProperties("ingredientsAsStream")
 interface RecipeComponent {
 	Collection<Ingredient> getIngredients();
 	Duration getDuration();