Function
parameterHasSymbol
(parameter: SchemaAST.AST)
Source from the content-addressed store, hash-verified
| 2269 | } |
| 2270 | |
| 2271 | function parameterHasSymbol(parameter: SchemaAST.AST): boolean { |
| 2272 | switch (parameter._tag) { |
| 2273 | case "Symbol": |
| 2274 | return true |
| 2275 | case "Union": |
| 2276 | return parameter.types.some(parameterHasSymbol) |
| 2277 | default: |
| 2278 | return false |
| 2279 | } |
| 2280 | } |
| 2281 | |
| 2282 | function isJsonDeclaration(ast: SchemaAST.Declaration): boolean { |
| 2283 | const id = representationId(ast) |
Tested by
no test coverage detected