Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ghae-release-notes-schema.js 1.2 KB

You have to be logged in to leave a comment. Sign In
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
  1. const section = {
  2. anyOf: [
  3. {
  4. type: 'array',
  5. items: { type: 'string' },
  6. minItems: 1
  7. },
  8. {
  9. type: 'object',
  10. properties: {
  11. heading: {
  12. type: 'string',
  13. required: true
  14. },
  15. notes: {
  16. type: 'array',
  17. items: { type: 'string' },
  18. required: true,
  19. minItems: 1
  20. }
  21. }
  22. }
  23. ]
  24. }
  25. module.exports = {
  26. properties: {
  27. intro: {
  28. type: 'string'
  29. },
  30. date: {
  31. type: 'string',
  32. format: 'date',
  33. required: true
  34. },
  35. friendlyDate: {
  36. type: 'string',
  37. required: true
  38. },
  39. title: {
  40. type: 'string',
  41. required: true
  42. },
  43. currentWeek: {
  44. type: 'boolean',
  45. required: true
  46. },
  47. release_candidate: {
  48. type: 'boolean',
  49. default: false
  50. },
  51. deprecated: {
  52. type: 'boolean',
  53. default: false
  54. },
  55. sections: {
  56. required: true,
  57. type: 'object',
  58. minProperties: 1,
  59. properties: [
  60. 'bugs',
  61. 'known_issues',
  62. 'features',
  63. 'changes',
  64. 'deprecations',
  65. 'security_fixes',
  66. 'backups'
  67. ].reduce((prev, curr) => ({ ...prev, [curr]: section }), {})
  68. }
  69. }
  70. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...