Just playing about with refactoriing the JSONSchema generator.