validation for figures, validation for isBasedOnUrl listing code (check that corresponding code list the resource as output)