A copy of node with leaf values upgraded to match schema, guaranteed to conform to it -- raises ParseError (with every problem found, not just the first, in both the message and the structured .errors list) if it can't be made to.
node
schema
.errors
A copy of
nodewith leaf values upgraded to matchschema, guaranteed to conform to it -- raises ParseError (with every problem found, not just the first, in both the message and the structured.errorslist) if it can't be made to.