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

release-notes-schema.js 1.0 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
  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. release_candidate: {
  36. type: 'boolean',
  37. default: false
  38. },
  39. deprecated: {
  40. type: 'boolean',
  41. default: false
  42. },
  43. sections: {
  44. required: true,
  45. type: 'object',
  46. minProperties: 1,
  47. properties: [
  48. 'bugs',
  49. 'known_issues',
  50. 'features',
  51. 'changes',
  52. 'deprecations',
  53. 'security_fixes',
  54. 'backups'
  55. ].reduce((prev, curr) => ({ ...prev, [curr]: section }), {})
  56. }
  57. }
  58. }
Tip!

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

Comments

Loading...