Skip to content

Commit

Permalink
fix typo (awslabs#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojackli authored and arsenalgunnershubert777 committed Nov 1, 2024
1 parent ee26d1c commit 97f7a3e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ case class ConstraintSuggestionWithValue[T](

object ConstraintSuggestions {

private[this] val CONSTRANT_SUGGESTIONS_FIELD = "constraint_suggestions"
private[this] val CONSTRAINT_SUGGESTIONS_FIELD = "constraint_suggestions"

private[suggestions] def toJson(constraintSuggestions: Seq[ConstraintSuggestion]): String = {

Expand All @@ -68,7 +68,7 @@ object ConstraintSuggestions {
constraintsJson.add(constraintJson)
}

json.add(CONSTRANT_SUGGESTIONS_FIELD, constraintsJson)
json.add(CONSTRAINT_SUGGESTIONS_FIELD, constraintsJson)

val gson = new GsonBuilder()
.setPrettyPrinting()
Expand Down Expand Up @@ -109,7 +109,7 @@ object ConstraintSuggestions {
constraintEvaluations.add(constraintEvaluation)
}

json.add(CONSTRANT_SUGGESTIONS_FIELD, constraintEvaluations)
json.add(CONSTRAINT_SUGGESTIONS_FIELD, constraintEvaluations)

val gson = new GsonBuilder()
.setPrettyPrinting()
Expand Down

0 comments on commit 97f7a3e

Please sign in to comment.