update schema.json

This commit is contained in:
Sina Atalay 2024-02-17 18:51:52 +01:00
parent 257b29889e
commit 433f37fa8e
1 changed files with 33 additions and 39 deletions

View File

@ -44,25 +44,12 @@
"title": "Disable Page Numbering", "title": "Disable Page Numbering",
"type": "boolean" "type": "boolean"
}, },
"text_alignment": { "page_numbering_style": {
"default": "justified", "default": "NAME -- Page PAGE_NUMBER of TOTAL_PAGES",
"description": "The alignment of the text. The default value is justified.", "description": "The style of the page numbering. The following placeholders can be used:\n- NAME: The name of the person\n- PAGE_NUMBER: The current page number\n- TOTAL_PAGES: The total number of pages\nThe default value is NAME -- Page PAGE_NUMBER of TOTAL_PAGES.",
"enum": [ "title": "Page Numbering Style",
"left-aligned",
"justified"
],
"title": "Text Alignment",
"type": "string" "type": "string"
}, },
"show_timespan_in": {
"default": [],
"description": "The time span will be shown in the date and location column in these sections. The input should be a list of section titles as strings (case-sensitive).",
"items": {
"type": "string"
},
"title": "Show Time Span in These Sections",
"type": "array"
},
"show_last_updated_date": { "show_last_updated_date": {
"default": true, "default": true,
"description": "If this option is set to true, then the last updated date will be shown in the header. The default value is true.", "description": "If this option is set to true, then the last updated date will be shown in the header. The default value is true.",
@ -115,6 +102,25 @@
"theme": { "theme": {
"const": "classic", "const": "classic",
"title": "Theme" "title": "Theme"
},
"text_alignment": {
"default": "justified",
"description": "The alignment of the text. The default value is justified.",
"enum": [
"left-aligned",
"justified"
],
"title": "Text Alignment",
"type": "string"
},
"show_timespan_in": {
"default": [],
"description": "The time span will be shown in the date and location column in these sections. The input should be a list of section titles as strings (case-sensitive).",
"items": {
"type": "string"
},
"title": "Show Time Span in These Sections",
"type": "array"
} }
}, },
"required": [ "required": [
@ -1031,25 +1037,12 @@
"title": "Disable Page Numbering", "title": "Disable Page Numbering",
"type": "boolean" "type": "boolean"
}, },
"text_alignment": { "page_numbering_style": {
"default": "justified", "default": "NAME -- Page PAGE_NUMBER of TOTAL_PAGES",
"description": "The alignment of the text. The default value is justified.", "description": "The style of the page numbering. The following placeholders can be used:\n- NAME: The name of the person\n- PAGE_NUMBER: The current page number\n- TOTAL_PAGES: The total number of pages\nThe default value is NAME -- Page PAGE_NUMBER of TOTAL_PAGES.",
"enum": [ "title": "Page Numbering Style",
"left-aligned",
"justified"
],
"title": "Text Alignment",
"type": "string" "type": "string"
}, },
"show_timespan_in": {
"default": [],
"description": "The time span will be shown in the date and location column in these sections. The input should be a list of section titles as strings (case-sensitive).",
"items": {
"type": "string"
},
"title": "Show Time Span in These Sections",
"type": "array"
},
"show_last_updated_date": { "show_last_updated_date": {
"default": true, "default": true,
"description": "If this option is set to true, then the last updated date will be shown in the header. The default value is true.", "description": "If this option is set to true, then the last updated date will be shown in the header. The default value is true.",
@ -1057,8 +1050,8 @@
"type": "boolean" "type": "boolean"
}, },
"header_font_size": { "header_font_size": {
"default": "30 pt", "default": "24 pt",
"description": "The font size of the header (the name of the person). The default value is 30 pt.", "description": "The font size of the header (the name of the person). The default value is 24 pt. Unfortunately, sb2nov does not support font sizes bigger than 24 pt.",
"pattern": "\\d+\\.?\\d* *(cm|in|pt|mm|ex|em)", "pattern": "\\d+\\.?\\d* *(cm|in|pt|mm|ex|em)",
"title": "Header Font Size", "title": "Header Font Size",
"type": "string" "type": "string"
@ -1180,8 +1173,7 @@
"page_size": "letterpaper", "page_size": "letterpaper",
"color": "#004f90", "color": "#004f90",
"disable_page_numbering": false, "disable_page_numbering": false,
"text_alignment": "justified", "page_numbering_style": "NAME -- Page PAGE_NUMBER of TOTAL_PAGES",
"show_timespan_in": [],
"show_last_updated_date": true, "show_last_updated_date": true,
"header_font_size": "30 pt", "header_font_size": "30 pt",
"margins": { "margins": {
@ -1211,7 +1203,9 @@
"top": "0.2 cm" "top": "0.2 cm"
} }
}, },
"theme": "classic" "theme": "classic",
"text_alignment": "justified",
"show_timespan_in": []
}, },
"description": "The design information of the CV.", "description": "The design information of the CV.",
"discriminator": { "discriminator": {