API — Function: validateForCodegen()

Function: validateForCodegen()

function validateForCodegen(model, target): Diagnostic[];

Defined in: model/validate.ts:51

[MODEL-CODEGEN-UNKNOWN] Codegen-blocking validation (GH issue #38): every type name reachable from decls visible to target must be a primitive, builtin generic, declared decl, or type param. Unknown names would otherwise pass through verbatim into target-language source that cannot compile.

Parameters

model

Model

target

string

Returns

Diagnostic[]