fresh-standard / fresh-resume-schema

A rational schema for your résumé or CV.
https://resume.freshstandard.org
MIT License
548 stars 25 forks source link

Correct specification of required properties #33

Open filipbartek opened 5 years ago

filipbartek commented 5 years ago

Required properties should be specified by an array of strings "required" at the record level rather than a boolean "required" at the property level.

See documentation: https://json-schema.org/understanding-json-schema/reference/object.html#required http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.5.3 http://json-schema.org/learn/miscellaneous-examples.html

This change makes the schema compatible with some tools including https://jsoneditoronline.org/ .

Note that I have not updated the version number in the schema filename nor in package.json because I don't know the version numbering policy.