(jsonSchema: JsonSchema7 | undefined)
| 1023 | } |
| 1024 | |
| 1025 | function isCompactableLiteral(jsonSchema: JsonSchema7 | undefined): jsonSchema is JsonSchema7Enum { |
| 1026 | return Predicate.hasProperty(jsonSchema, "enum") && "type" in jsonSchema && Object.keys(jsonSchema).length === 2 |
| 1027 | } |
| 1028 | |
| 1029 | function compactUnion(members: Array<JsonSchema7>): Array<JsonSchema7> { |
| 1030 | const out: Array<JsonSchema7> = [] |
no test coverage detected
searching dependent graphs…