in src/main/java/aws/cfn/codegen/CfnSpecification.java [27:42]
public void validate() throws CfnSpecificationException {
resourceTypes.forEach(
(name, type) -> {
type.getProperties().forEach(
(propName, propType) -> {
propType.getComplexType().ifPresent(cplx -> {
if (!propertyTypes.containsKey(name + "." + cplx) &&
!propertyTypes.containsKey(cplx)) {
throw new CfnSpecificationException(cplx + " referenced but not defined in " + name);
}
});
}
);
}
);
}