Function
isVoid
(jsonSchema: JsonSchema7)
Source from the content-addressed store, hash-verified
| 1019 | } |
| 1020 | |
| 1021 | function isVoid(jsonSchema: JsonSchema7): jsonSchema is JsonSchema7Void { |
| 1022 | return "$id" in jsonSchema && jsonSchema.$id === constVoid.$id |
| 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 |
Tested by
no test coverage detected