[2.0 spec] Make SchemaObject properties for strings available to the code generator

implements maxLength/minLength/pattern as specified in the 2.0-spec