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

versions-schema.js 2.4 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
72
73
74
75
76
77
78
79
80
81
82
83
  1. // match plan@release
  2. // e.g., free-pro-team@latest, enterprise-server@2.22
  3. const planPattern = '^[a-z-]+'
  4. const releasePattern = '[a-z0-9-.]+'
  5. const delimiter = '@'
  6. const versionPattern = `${planPattern}${delimiter}${releasePattern}`
  7. module.exports = {
  8. properties: {
  9. version: {
  10. required: true,
  11. description: 'the version string',
  12. type: 'string',
  13. pattern: versionPattern
  14. },
  15. versionTitle: {
  16. required: true,
  17. description: 'the version title',
  18. type: 'string'
  19. },
  20. latestVersion: {
  21. required: true,
  22. description: 'the version name that includes the latest release',
  23. type: 'string',
  24. pattern: versionPattern
  25. },
  26. currentRelease: {
  27. required: true,
  28. description: 'the release substring in the version string',
  29. type: 'string',
  30. pattern: releasePattern
  31. },
  32. plan: {
  33. description: 'the plan substring in the version string',
  34. type: 'string',
  35. pattern: planPattern
  36. },
  37. planTitle: {
  38. required: true,
  39. description: 'the plan title', // this is the same as the version title, sans numbered release
  40. type: 'string'
  41. },
  42. releases: {
  43. required: true,
  44. description: 'an array of all supported releases for the version',
  45. type: 'array'
  46. },
  47. latestRelease: {
  48. required: true,
  49. description: 'the value of the latest release',
  50. type: 'string',
  51. pattern: releasePattern
  52. },
  53. hasNumberedReleases: {
  54. description: 'boolean indicating whether the plan has numbered releases; if not, the release defalts to "latest"',
  55. type: 'boolean'
  56. },
  57. nonEnterpriseDefault: {
  58. description: 'boolean indicating whether the plan is the default non-Enterprise version', // helper if the plan name changes
  59. type: 'boolean'
  60. },
  61. openApiBaseName: {
  62. required: true,
  63. description: 'base name used to map an openAPI schema name to the current version',
  64. type: 'string'
  65. },
  66. openApiVersionName: {
  67. required: true,
  68. description: 'final name used to map an openAPI schema name to the current version',
  69. type: 'string'
  70. },
  71. miscBaseName: {
  72. required: true,
  73. description: 'base name used to map GraphQL and webhook schema names to the current version',
  74. type: 'string'
  75. },
  76. miscVersionName: {
  77. required: true,
  78. description: 'final name used to map GraphQL and webhook schema names to the current version',
  79. type: 'string'
  80. }
  81. }
  82. }
Tip!

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

Comments

Loading...