# ~~~
module pop_validation
-import json
+import json::static
# The base class of all validators
abstract class DocumentValidator
return obj
end
- redef fun to_json do return json.to_json
+ redef fun serialize_to(v) do json.serialize_to(v)
# Returns the validation result as a pretty formated string
fun to_pretty_string: String do