Nicolas Despres

Results issues of Nicolas Despres

This chunk of code is duplicated in many places: ``` ruby rescue ValidationError => e # Reset sanitized object. self.sanitized_object = nil raise e end ```

debt

- Pro: - More descriptive - Cons: - Will be caught by ArgumentError rescue_from...

question

- Forbid zero for 'divisible_by' and 'multiple_of'? A ZeroDivisionError is raised at validation time instead of a InvalidSchemaError at description time. - Valid format argument? For most of the argument...

question

Obviously, json-schema v3 and the draft do not provide such a constraint. They are very useful but we could not generate documentation for them. Would that be ok?

question

Right now there is the poorest logging system in dumpers: `Kernel.warn`. We should use a regular logger API and let the user provide its own. We could also introduce a...

debt

I see four modules: - one for the dynamic methods (called `DynamicStatement`?) - one for the macros: `email`, `phone_number`, and `hostname` (called `FormatHelperStatement`?) - one for `doc` (called `DocStatement`?) -...

enhancement

We use Ruby regexp but [json-schema.org](http://json-schema.org) uses ECMA 262 regexp. AFAIK, Ruby's regexps have more features.

debt

Right now users can dump their schema in [JSON Schema specification draft v3](http://tools.ietf.org/id/draft-zyp-json-schema-03.html). It would be great to be able to create a schema object from such a representation.

enhancement

Right now it is not easy to define how a new Schema sub-class should be dump using the various available dumpers. The ideal would be to only have to overwrite...

enhancement