Skip to content

Commit

Permalink
Lower truncation limit for Dashboard Metadata API prettyPrint
Browse files Browse the repository at this point in the history
which was unnecessarily large when used as an API and not simply for the
Metadata tab API preview UI.

GitOrigin-RevId: 35dbf0ee9da181ff48f305d6d2c86c3eaad0f686
  • Loading branch information
adrw authored and svc-squareup-copybara committed Feb 18, 2025
1 parent 7e76230 commit bfd3621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misk-config/src/main/kotlin/misk/web/metadata/Metadata.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ open class Metadata @JvmOverloads constructor(
}
}

private const val JSON_TRUNCATION_LIMIT = 100_000
private const val JSON_TRUNCATION_LIMIT = 4_000
fun <T> JsonAdapter<T>.toFormattedJson(value: T): String {
val json = serializeNulls()
.indent(" ")
Expand Down

0 comments on commit bfd3621

Please sign in to comment.