@@ -1031,7 +1031,10 @@ def validate_links(self, document, base_url, all_doc_ids):
1031
1031
all_doc_ids [document [identifier ]] = sl .makeLead ()
1032
1032
break
1033
1033
except validate .ValidationException as v :
1034
- errors .append (sl .makeError (six .text_type (v )))
1034
+ if d == "$schemas" :
1035
+ _logger .warn ( validate .indent (six .text_type (v )))
1036
+ else :
1037
+ errors .append (sl .makeError (six .text_type (v )))
1035
1038
if hasattr (document , "iteritems" ):
1036
1039
iterator = six .iteritems (document )
1037
1040
else :
@@ -1044,7 +1047,9 @@ def validate_links(self, document, base_url, all_doc_ids):
1044
1047
try :
1045
1048
self .validate_links (val , docid , all_doc_ids )
1046
1049
except validate .ValidationException as v :
1047
- if key not in self .nolinkcheck :
1050
+ if key in self .nolinkcheck or (isinstance (key , six .string_types ) and ":" in key ):
1051
+ _logger .warn ( validate .indent (six .text_type (v )))
1052
+ else :
1048
1053
docid2 = self .getid (val )
1049
1054
if docid2 is not None :
1050
1055
errors .append (sl .makeError ("checking object `%s`\n %s"
@@ -1056,8 +1061,6 @@ def validate_links(self, document, base_url, all_doc_ids):
1056
1061
else :
1057
1062
errors .append (sl .makeError ("checking item\n %s" % (
1058
1063
validate .indent (six .text_type (v )))))
1059
- else :
1060
- _logger .warn ( validate .indent (six .text_type (v )))
1061
1064
if bool (errors ):
1062
1065
if len (errors ) > 1 :
1063
1066
raise validate .ValidationException (
0 commit comments