mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +03:00
Abbreviate the JSON for Info.
This commit is contained in:
parent
26aabe9c58
commit
80c0443820
@ -38,10 +38,8 @@ public enum Info: AlgebraicHashable, CustomDebugStringConvertible, CustomJSONCon
|
||||
switch self {
|
||||
case let .Literal(source, categories):
|
||||
return [
|
||||
"literal": [
|
||||
"source": .String(source),
|
||||
"categories": .Array(categories.map { $0.JSON })
|
||||
]
|
||||
"source": .String(source),
|
||||
"categories": .Array(categories.map { $0.JSON }),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user