extended api-def validation to check internal references