(where, node)
| 912 | const hasMisplacedBound = (node) => |
| 913 | !!node && ((BOUND_KEYS.some((k) => k in node) && !isNumeric(node)) || nestedTypes(node).some(hasMisplacedBound)) |
| 914 | const report = (where, node) => { |
| 915 | for (const r of refsInType(node)) if (!has(r)) errors.push(`${where}: unresolved type ${r}`) |
| 916 | if (hasUnknown(node)) errors.push(`${where}: projected to an unknown primitive (unhandled CDDL type)`) |
| 917 | if (hasEmptyInlineRecord(node)) errors.push(`${where}: projected an empty inline record (dropped type reference)`) |
| 918 | if (hasMisplacedBound(node)) errors.push(`${where}: carries a numeric bound on a non-numeric type`) |
| 919 | } |
| 920 | |
| 921 | for (const c of [...schema.commands, ...schema.events]) { |
| 922 | report(c.method, c.params) |
no test coverage detected