Commit Graph

9 Commits

Author SHA1 Message Date
Reorx 911df68cd1 add meta.locale in jsoncv schema, use it when rendering the theme 2023-12-08 21:00:55 +08:00
Reorx 10c8b8c7de replace all occurances of "resume" to "cv" in jsoncv schema and related files 2023-02-12 22:30:40 +08:00
Reorx 08bb8c6c43 schema: add summary in languages and skills items 2023-02-11 02:49:25 +08:00
Reorx 6461995fbf refactor project structures
- vite.config.js: used to generate static cv in a single html file
- vite.config.site.js: used to build the jsoncv site, including editor and preview pages
2023-02-06 22:52:35 +08:00
Reorx 3f0f2e52af WIP: merge multiple packages/vite.configs into one single package/vite.config 2023-02-03 14:53:08 +08:00
Reorx 1491738fc2 schema: add format:date for iso8601
this enables input:datetime for json editor
2023-02-03 01:03:30 +08:00
Reorx 145e5d118a schema: remove all additionalItems
they are of no use in the latest JSON Schema reference, see: https://json-schema.org/understanding-json-schema/reference/array.html

> The items keyword can be used to control whether it’s valid to have additional items in a tuple beyond what is defined in prefixItems. The value of the items keyword is a schema that all additional items must pass in order for the keyword to validate.
> Before to Draft 2020-12, you would use the additionalItems keyword to constrain additional items on a tuple. It works the same as items, only the name has changed.
> In Draft 6 - 2019-09, the additionalItems keyword is ignored if there is not a "tuple validation" items keyword present in the same schema.
2023-02-02 12:03:16 +08:00
Reorx bd4ee30289 schema: migrate jsoncv schema using ajv cli
command: npx ajv migrate -s schema/jsoncv.schema.json

the result is that only the schema version changed from draft-04 to draft-07, allowing to use ajv for the latest version
2023-02-02 12:03:16 +08:00
Reorx eabd65fd5a add schemas, copy jsonresume to jsoncv schema 2023-02-02 11:23:15 +08:00