|
27 | 27 | "type": "string", |
28 | 28 | "description": "Section subtitle" |
29 | 29 | }, |
| 30 | + "username": { |
| 31 | + "type": "string", |
| 32 | + "description": "Author username to pull fallback contact details from", |
| 33 | + "default": "me" |
| 34 | + }, |
30 | 35 | "visit_title": { |
31 | 36 | "type": "string", |
32 | 37 | "description": "Title for the visit section", |
|
37 | 42 | "description": "Title for the connect section", |
38 | 43 | "default": "Connect" |
39 | 44 | }, |
| 45 | + "text": { |
| 46 | + "type": "string", |
| 47 | + "description": "Connect section intro text" |
| 48 | + }, |
40 | 49 | "address": { |
41 | | - "type": "object", |
42 | 50 | "description": "Physical address information", |
43 | | - "properties": { |
44 | | - "lines": { |
| 51 | + "oneOf": [ |
| 52 | + { |
| 53 | + "type": "string", |
| 54 | + "description": "Single-line address" |
| 55 | + }, |
| 56 | + { |
| 57 | + "type": "object", |
| 58 | + "properties": { |
| 59 | + "lines": { |
| 60 | + "description": "Address lines", |
| 61 | + "oneOf": [ |
| 62 | + { |
| 63 | + "type": "array", |
| 64 | + "items": { |
| 65 | + "type": "string" |
| 66 | + } |
| 67 | + }, |
| 68 | + { |
| 69 | + "type": "string" |
| 70 | + } |
| 71 | + ] |
| 72 | + } |
| 73 | + }, |
| 74 | + "additionalProperties": false |
| 75 | + } |
| 76 | + ] |
| 77 | + }, |
| 78 | + "office_hours": { |
| 79 | + "description": "Office hours information", |
| 80 | + "oneOf": [ |
| 81 | + { |
45 | 82 | "type": "array", |
46 | | - "description": "Address lines", |
47 | 83 | "items": { |
48 | 84 | "type": "string" |
49 | 85 | } |
| 86 | + }, |
| 87 | + { |
| 88 | + "type": "string" |
50 | 89 | } |
51 | | - }, |
52 | | - "additionalProperties": false |
53 | | - }, |
54 | | - "office_hours": { |
55 | | - "type": "array", |
56 | | - "description": "Office hours information", |
57 | | - "items": { |
58 | | - "type": "string" |
59 | | - } |
| 90 | + ] |
60 | 91 | }, |
61 | 92 | "email": { |
62 | 93 | "type": "string", |
|
68 | 99 | "description": "Contact phone number" |
69 | 100 | }, |
70 | 101 | "social": { |
71 | | - "type": "array", |
72 | 102 | "description": "Social media links", |
73 | | - "items": { |
74 | | - "type": "object", |
75 | | - "properties": { |
76 | | - "icon": { |
77 | | - "type": "string", |
78 | | - "description": "Icon name (e.g., 'brands/x', 'brands/linkedin')" |
79 | | - }, |
80 | | - "url": { |
81 | | - "type": "string", |
82 | | - "description": "Social media URL" |
83 | | - } |
| 103 | + "oneOf": [ |
| 104 | + { |
| 105 | + "type": "string", |
| 106 | + "description": "Single social link" |
84 | 107 | }, |
85 | | - "required": ["icon", "url"], |
86 | | - "additionalProperties": false |
87 | | - } |
| 108 | + { |
| 109 | + "type": "array", |
| 110 | + "items": { |
| 111 | + "oneOf": [ |
| 112 | + { |
| 113 | + "type": "string" |
| 114 | + }, |
| 115 | + { |
| 116 | + "type": "object", |
| 117 | + "properties": { |
| 118 | + "icon": { |
| 119 | + "type": "string", |
| 120 | + "description": "Icon name (e.g., 'brands/x', 'brands/linkedin')" |
| 121 | + }, |
| 122 | + "url": { |
| 123 | + "type": "string", |
| 124 | + "description": "Social media URL" |
| 125 | + }, |
| 126 | + "link": { |
| 127 | + "type": "string", |
| 128 | + "description": "Alias for url" |
| 129 | + }, |
| 130 | + "label": { |
| 131 | + "type": "string", |
| 132 | + "description": "Tooltip label" |
| 133 | + }, |
| 134 | + "name": { |
| 135 | + "type": "string", |
| 136 | + "description": "Label alias" |
| 137 | + } |
| 138 | + }, |
| 139 | + "anyOf": [{ "required": ["url"] }, { "required": ["link"] }], |
| 140 | + "additionalProperties": false |
| 141 | + } |
| 142 | + ] |
| 143 | + } |
| 144 | + } |
| 145 | + ] |
88 | 146 | }, |
89 | 147 | "prospective": { |
90 | 148 | "type": "object", |
|
0 commit comments