-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtemplate.json
More file actions
50 lines (50 loc) · 1.28 KB
/
template.json
File metadata and controls
50 lines (50 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"id": 0,
"slug": "your-slug-here",
"title": "Your Pattern Title",
"category": "language",
"difficulty": "beginner",
"jdkVersion": "17",
"oldLabel": "Java 8",
"modernLabel": "Java 17+",
"oldApproach": "Old Approach Name",
"modernApproach": "Modern Approach Name",
"oldCode": "// Old way...",
"modernCode": "// Modern way...",
"summary": "One-line description of the pattern.",
"explanation": "A paragraph explaining how the modern approach works and when to use it.",
"whyModernWins": [
{
"icon": "⚡",
"title": "Short benefit title",
"desc": "One sentence describing this benefit."
},
{
"icon": "👁",
"title": "Short benefit title",
"desc": "One sentence describing this benefit."
},
{
"icon": "🔒",
"title": "Short benefit title",
"desc": "One sentence describing this benefit."
}
],
"support": {
"state": "available",
"description": "Widely available since JDK 17 (September 2021)"
},
"prev": "category/previous-slug",
"next": "category/next-slug",
"related": [
"category/related-slug-1",
"category/related-slug-2",
"category/related-slug-3"
],
"docs": [
{
"title": "Javadoc or Guide Title",
"href": "https://docs.oracle.com/..."
}
]
}