Project

General

Profile

Bug #19571 » 19571-ref_resolver.patch

Joshua Randall, 10/28/2022 04:08 PM

View differences:

a/ref_resolver.py
745 745
                    ):
746 746
                        loader.idx[document[identifer]] = document
747 747
                    base_url = document[identifer]
748
                else:
749
                    raise ValidationException(
750
                        "identifier field '{}' must be a string".format(
751
                            document[identifer]
752
                        )
753
                    )
754 748
        return base_url
755 749

  
756 750
    def _resolve_identity(
......
907 901
                    )
908 902
            except ValidationException as v:
909 903
                _logger.warning("loader is %s", id(loader), exc_info=True)
910
                raise ValidationException(
911
                    "({}) ({}) Validation error in field {}:".format(
912
                        id(loader), file_base, key
913
                    ),
914
                    None,
915
                    [v],
916
                ) from v
917 904

  
918 905
        elif isinstance(document, CommentedSeq):
919 906
            i = 0
(3-3/3)