If you have a schema, then add a field as being required programmatically, the resulting jsonschema doesn't mark the field as required.