in compiler/src/steps/validate-rest-spec.ts [160:169]
function getDefinition (name: model.TypeName): model.Request | model.Interface {
for (const type of model.types) {
if (type.kind === 'request' || type.kind === 'interface') {
if (type.name.name === name.name && type.name.namespace === name.namespace) {
return type
}
}
}
throw new Error(`Can't find the request definiton for ${name.namespace}.${name.name}`)
}