serialize(error, { write }) {
			write(error.errors);
			write(error.schema);
			write({
				name: error.headerName,
				baseDataPath: error.baseDataPath,
				postFormatter: error.postFormatter
			});
		}
@param {ValidationError} error the source map source to be serialized
@param {ObjectSerializerContext} context context
@returns {void}