Changed rank from string to enum. Validated with https://json-schema-validator.herokuapp.com/syntax.jsp