JSONSchemata 0.0.0.dev4__tar.gz → 0.0.0.dev7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. jsonschemata-0.0.0.dev7/MANIFEST.in +1 -0
  2. {jsonschemata-0.0.0.dev4/src/JSONSchemata.egg-info → jsonschemata-0.0.0.dev7}/PKG-INFO +2 -2
  3. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/pyproject.toml +2 -2
  4. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7/src/JSONSchemata.egg-info}/PKG-INFO +2 -2
  5. jsonschemata-0.0.0.dev7/src/JSONSchemata.egg-info/SOURCES.txt +60 -0
  6. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/src/JSONSchemata.egg-info/requires.txt +1 -1
  7. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/array/unique-strings.yaml +13 -0
  8. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/css-name.yaml +156 -0
  9. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/css.yaml +14 -0
  10. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/hex-string.yaml +22 -0
  11. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/hsl-array.yaml +22 -0
  12. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/hsl-string.yaml +25 -0
  13. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/hsla-array.yaml +26 -0
  14. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/rgb-array.yaml +13 -0
  15. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/rgb-string.yaml +29 -0
  16. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/color/rgba-array.yaml +27 -0
  17. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/config/github/form/body.yaml +49 -0
  18. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/config/github/label/description.yaml +7 -0
  19. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/date/yyyy-mm-dd.yaml +11 -0
  20. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/doi.yaml +14 -0
  21. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/email.yaml +10 -0
  22. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/github/node.yaml +9 -0
  23. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/github/rest.yaml +10 -0
  24. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/github/user.yaml +12 -0
  25. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/linkedin.yaml +7 -0
  26. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/orcid.yaml +11 -0
  27. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/researchgate.yaml +9 -0
  28. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/spdx-license.yaml +472 -0
  29. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/id/twitter.yaml +9 -0
  30. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/integer/non-negative.yaml +10 -0
  31. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/number/non-negative.yaml +12 -0
  32. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/path/dir-name.yaml +4 -0
  33. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/path/posix/absolute-from-cwd.yaml +12 -0
  34. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/string/nonempty.yaml +8 -0
  35. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/string/oneline.yaml +12 -0
  36. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/uri/mailto.yaml +12 -0
  37. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/README.md +6 -0
  38. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/ftp.yaml +15 -0
  39. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/github/user.yaml +9 -0
  40. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/http-explicit.yaml +14 -0
  41. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/http-ftp-sftp.yaml +10 -0
  42. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/http-implicit.yaml +14 -0
  43. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/https.yaml +13 -0
  44. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/linkedin/company.yaml +10 -0
  45. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/linkedin/person.yaml +9 -0
  46. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/linkedin/user.yaml +10 -0
  47. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/orcid/user.yaml +9 -0
  48. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/researchgate/institution.yaml +9 -0
  49. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/researchgate/lab.yaml +9 -0
  50. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/researchgate/person.yaml +9 -0
  51. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/researchgate/user.yaml +11 -0
  52. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/sftp.yaml +13 -0
  53. jsonschemata-0.0.0.dev7/src/jsonschemata/_data/url/twitter/user.yaml +9 -0
  54. jsonschemata-0.0.0.dev4/src/JSONSchemata.egg-info/SOURCES.txt +0 -12
  55. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/LICENSE +0 -0
  56. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/README.md +0 -0
  57. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/setup.cfg +0 -0
  58. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/src/JSONSchemata.egg-info/dependency_links.txt +0 -0
  59. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/src/JSONSchemata.egg-info/not-zip-safe +0 -0
  60. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/src/JSONSchemata.egg-info/top_level.txt +0 -0
  61. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/src/jsonschemata/__init__.py +0 -0
  62. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/src/jsonschemata/edit.py +0 -0
  63. {jsonschemata-0.0.0.dev4 → jsonschemata-0.0.0.dev7}/src/jsonschemata/registry.py +0 -0
@@ -0,0 +1 @@
1
+ graft src/jsonschemata/_data
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: JSONSchemata
3
- Version: 0.0.0.dev4
3
+ Version: 0.0.0.dev7
4
4
  Requires-Python: >=3.10
5
5
  License-File: LICENSE
6
6
  Requires-Dist: referencing>=0.35.1
7
7
  Requires-Dist: PkgData==0.0.0.dev4
8
- Requires-Dist: PySerials==0.0.0.dev8
8
+ Requires-Dist: PySerials==0.0.0.dev11
9
9
  Requires-Dist: PyLinks==0.0.0.dev27
@@ -17,12 +17,12 @@ namespaces = true
17
17
  # ----------------------------------------- Project Metadata -------------------------------------
18
18
  #
19
19
  [project]
20
- version = "0.0.0.dev4"
20
+ version = "0.0.0.dev7"
21
21
  name = "JSONSchemata"
22
22
  dependencies = [
23
23
  "referencing >= 0.35.1",
24
24
  "PkgData == 0.0.0.dev4",
25
- "PySerials == 0.0.0.dev8",
25
+ "PySerials == 0.0.0.dev11",
26
26
  "PyLinks == 0.0.0.dev27",
27
27
  ]
28
28
  requires-python = ">=3.10"
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: JSONSchemata
3
- Version: 0.0.0.dev4
3
+ Version: 0.0.0.dev7
4
4
  Requires-Python: >=3.10
5
5
  License-File: LICENSE
6
6
  Requires-Dist: referencing>=0.35.1
7
7
  Requires-Dist: PkgData==0.0.0.dev4
8
- Requires-Dist: PySerials==0.0.0.dev8
8
+ Requires-Dist: PySerials==0.0.0.dev11
9
9
  Requires-Dist: PyLinks==0.0.0.dev27
@@ -0,0 +1,60 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ src/JSONSchemata.egg-info/PKG-INFO
6
+ src/JSONSchemata.egg-info/SOURCES.txt
7
+ src/JSONSchemata.egg-info/dependency_links.txt
8
+ src/JSONSchemata.egg-info/not-zip-safe
9
+ src/JSONSchemata.egg-info/requires.txt
10
+ src/JSONSchemata.egg-info/top_level.txt
11
+ src/jsonschemata/__init__.py
12
+ src/jsonschemata/edit.py
13
+ src/jsonschemata/registry.py
14
+ src/jsonschemata/_data/array/unique-strings.yaml
15
+ src/jsonschemata/_data/color/css-name.yaml
16
+ src/jsonschemata/_data/color/css.yaml
17
+ src/jsonschemata/_data/color/hex-string.yaml
18
+ src/jsonschemata/_data/color/hsl-array.yaml
19
+ src/jsonschemata/_data/color/hsl-string.yaml
20
+ src/jsonschemata/_data/color/hsla-array.yaml
21
+ src/jsonschemata/_data/color/rgb-array.yaml
22
+ src/jsonschemata/_data/color/rgb-string.yaml
23
+ src/jsonschemata/_data/color/rgba-array.yaml
24
+ src/jsonschemata/_data/config/github/form/body.yaml
25
+ src/jsonschemata/_data/config/github/label/description.yaml
26
+ src/jsonschemata/_data/date/yyyy-mm-dd.yaml
27
+ src/jsonschemata/_data/id/doi.yaml
28
+ src/jsonschemata/_data/id/email.yaml
29
+ src/jsonschemata/_data/id/linkedin.yaml
30
+ src/jsonschemata/_data/id/orcid.yaml
31
+ src/jsonschemata/_data/id/researchgate.yaml
32
+ src/jsonschemata/_data/id/spdx-license.yaml
33
+ src/jsonschemata/_data/id/twitter.yaml
34
+ src/jsonschemata/_data/id/github/node.yaml
35
+ src/jsonschemata/_data/id/github/rest.yaml
36
+ src/jsonschemata/_data/id/github/user.yaml
37
+ src/jsonschemata/_data/integer/non-negative.yaml
38
+ src/jsonschemata/_data/number/non-negative.yaml
39
+ src/jsonschemata/_data/path/dir-name.yaml
40
+ src/jsonschemata/_data/path/posix/absolute-from-cwd.yaml
41
+ src/jsonschemata/_data/string/nonempty.yaml
42
+ src/jsonschemata/_data/string/oneline.yaml
43
+ src/jsonschemata/_data/uri/mailto.yaml
44
+ src/jsonschemata/_data/url/README.md
45
+ src/jsonschemata/_data/url/ftp.yaml
46
+ src/jsonschemata/_data/url/http-explicit.yaml
47
+ src/jsonschemata/_data/url/http-ftp-sftp.yaml
48
+ src/jsonschemata/_data/url/http-implicit.yaml
49
+ src/jsonschemata/_data/url/https.yaml
50
+ src/jsonschemata/_data/url/sftp.yaml
51
+ src/jsonschemata/_data/url/github/user.yaml
52
+ src/jsonschemata/_data/url/linkedin/company.yaml
53
+ src/jsonschemata/_data/url/linkedin/person.yaml
54
+ src/jsonschemata/_data/url/linkedin/user.yaml
55
+ src/jsonschemata/_data/url/orcid/user.yaml
56
+ src/jsonschemata/_data/url/researchgate/institution.yaml
57
+ src/jsonschemata/_data/url/researchgate/lab.yaml
58
+ src/jsonschemata/_data/url/researchgate/person.yaml
59
+ src/jsonschemata/_data/url/researchgate/user.yaml
60
+ src/jsonschemata/_data/url/twitter/user.yaml
@@ -1,4 +1,4 @@
1
1
  referencing>=0.35.1
2
2
  PkgData==0.0.0.dev4
3
- PySerials==0.0.0.dev8
3
+ PySerials==0.0.0.dev11
4
4
  PyLinks==0.0.0.dev27
@@ -0,0 +1,13 @@
1
+ $id: https://jsonschemata.repodynamics.com/array/unique-strings
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: Array of Unique Strings
4
+ description: |
5
+ A non-empty array of unique strings.
6
+ type: array
7
+ uniqueItems: true
8
+ minItems: 0
9
+ items:
10
+ type: string
11
+ minLength: 1
12
+ examples:
13
+ - [ 'string1', 'string2', 'string3' ]
@@ -0,0 +1,156 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/css-name
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: CSS Named Color
4
+ description: A CSS [`<named-color>`](https://developer.mozilla.org/en-US/docs/Web/CSS/named-color).
5
+ $comment: >-
6
+ Reference: https://github.com/bahamas10/css-color-names
7
+ type: string
8
+ enum:
9
+ - aliceblue
10
+ - antiquewhite
11
+ - aqua
12
+ - aquamarine
13
+ - azure
14
+ - beige
15
+ - bisque
16
+ - black
17
+ - blanchedalmond
18
+ - blue
19
+ - blueviolet
20
+ - brown
21
+ - burlywood
22
+ - cadetblue
23
+ - chartreuse
24
+ - chocolate
25
+ - coral
26
+ - cornflowerblue
27
+ - cornsilk
28
+ - crimson
29
+ - cyan
30
+ - darkblue
31
+ - darkcyan
32
+ - darkgoldenrod
33
+ - darkgray
34
+ - darkgreen
35
+ - darkgrey
36
+ - darkkhaki
37
+ - darkmagenta
38
+ - darkolivegreen
39
+ - darkorange
40
+ - darkorchid
41
+ - darkred
42
+ - darksalmon
43
+ - darkseagreen
44
+ - darkslateblue
45
+ - darkslategray
46
+ - darkslategrey
47
+ - darkturquoise
48
+ - darkviolet
49
+ - deeppink
50
+ - deepskyblue
51
+ - dimgray
52
+ - dimgrey
53
+ - dodgerblue
54
+ - firebrick
55
+ - floralwhite
56
+ - forestgreen
57
+ - fuchsia
58
+ - gainsboro
59
+ - ghostwhite
60
+ - goldenrod
61
+ - gold
62
+ - gray
63
+ - green
64
+ - greenyellow
65
+ - grey
66
+ - honeydew
67
+ - hotpink
68
+ - indianred
69
+ - indigo
70
+ - ivory
71
+ - khaki
72
+ - lavenderblush
73
+ - lavender
74
+ - lawngreen
75
+ - lemonchiffon
76
+ - lightblue
77
+ - lightcoral
78
+ - lightcyan
79
+ - lightgoldenrodyellow
80
+ - lightgray
81
+ - lightgreen
82
+ - lightgrey
83
+ - lightpink
84
+ - lightsalmon
85
+ - lightseagreen
86
+ - lightskyblue
87
+ - lightslategray
88
+ - lightslategrey
89
+ - lightsteelblue
90
+ - lightyellow
91
+ - lime
92
+ - limegreen
93
+ - linen
94
+ - magenta
95
+ - maroon
96
+ - mediumaquamarine
97
+ - mediumblue
98
+ - mediumorchid
99
+ - mediumpurple
100
+ - mediumseagreen
101
+ - mediumslateblue
102
+ - mediumspringgreen
103
+ - mediumturquoise
104
+ - mediumvioletred
105
+ - midnightblue
106
+ - mintcream
107
+ - mistyrose
108
+ - moccasin
109
+ - navajowhite
110
+ - navy
111
+ - oldlace
112
+ - olive
113
+ - olivedrab
114
+ - orange
115
+ - orangered
116
+ - orchid
117
+ - palegoldenrod
118
+ - palegreen
119
+ - paleturquoise
120
+ - palevioletred
121
+ - papayawhip
122
+ - peachpuff
123
+ - peru
124
+ - pink
125
+ - plum
126
+ - powderblue
127
+ - purple
128
+ - rebeccapurple
129
+ - red
130
+ - rosybrown
131
+ - royalblue
132
+ - saddlebrown
133
+ - salmon
134
+ - sandybrown
135
+ - seagreen
136
+ - seashell
137
+ - sienna
138
+ - silver
139
+ - skyblue
140
+ - slateblue
141
+ - slategray
142
+ - slategrey
143
+ - snow
144
+ - springgreen
145
+ - steelblue
146
+ - tan
147
+ - teal
148
+ - thistle
149
+ - tomato
150
+ - turquoise
151
+ - violet
152
+ - wheat
153
+ - white
154
+ - whitesmoke
155
+ - yellow
156
+ - yellowgreen
@@ -0,0 +1,14 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/css
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: CSS Color
4
+ description: |
5
+ A [CSS `color` property](https://developer.mozilla.org/en-US/docs/Web/CSS/color),
6
+ which can be a [`<named-color>`](https://developer.mozilla.org/en-US/docs/Web/CSS/named-color),
7
+ a [`<hex-color>`](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color),
8
+ an [`rgb()`/`rgba()`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb) functional notation,
9
+ or an [`hsl()`/`hsla()`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl) funcional notation.
10
+ oneOf:
11
+ - $ref: https://jsonschemata.repodynamics.com/color/css-name
12
+ - $ref: https://jsonschemata.repodynamics.com/color/hex-string
13
+ - $ref: https://jsonschemata.repodynamics.com/color/rgb-string
14
+ - $ref: https://jsonschemata.repodynamics.com/color/hsl-string
@@ -0,0 +1,22 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/hex-string
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: Hex RGB Color String
4
+ description: |
5
+ A hexadecimal color in the sRGB color space
6
+ acoording to its red, green, and blue components.
7
+ An optional alpha channel may be specified for transparency.
8
+
9
+ For more information, see:
10
+ - [CSS hex-color](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)
11
+
12
+ type: string
13
+ pattern: ^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
14
+ examples:
15
+ - 'F36'
16
+ - '#f36'
17
+ - 'ff3366'
18
+ - '#FF3366'
19
+ - 'F36A'
20
+ - '#f36a'
21
+ - 'ff3366aa'
22
+ - '#FF3366AA'
@@ -0,0 +1,22 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/hsl-array
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: HSL Color Array
4
+ description: |
5
+ An HSL color code as an array of three numbers:
6
+ hue in degrees (0-360), followed by saturation and lightness as fractions between 0 and 1.
7
+ type: array
8
+ minItems: 3
9
+ maxItems: 3
10
+ prefixItems:
11
+ - title: Hue
12
+ type: integer
13
+ minimum: 0
14
+ maximum: 360
15
+ - title: Saturation
16
+ type: number
17
+ minimum: 0
18
+ maximum: 1
19
+ - title: Lightness
20
+ type: number
21
+ minimum: 0
22
+ maximum: 1
@@ -0,0 +1,25 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/hsl-string
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: HSL Color String
4
+ description: |
5
+ A CSS [`hsl()`/`hsla()`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl)
6
+ functional notation expressing a
7
+ [CSS `color` property](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
8
+ in the sRGB color space
9
+ according to its hue, saturation, and lightness components.
10
+ An optional alpha channel may be specified for transparency.
11
+ type: string
12
+ oneOf:
13
+ # New format
14
+ - pattern: ^hsla?\(\s*((([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)(deg|rad|grad|turn)?)|(none))\s*((\+?\d*\.?\d+(?:[eE][+-]?\d+)?%?)|(none))\s*((\+?\d*\.?\d+(?:[eE][+-]?\d+)?%?)|(none))\s*(/\s*((\+?\d*\.?\d+(?:[eE][+-]?\d+)?%?)|(none))\s*)?\)$
15
+ # Old format
16
+ - pattern: ^hsla?\(\s*(([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)(?P<h_unit>deg|rad|grad|turn)?)\s*,\s*(\+?\d*\.?\d+(?:[eE][+-]?\d+)?%)\s*,\s*(\+?\d*\.?\d+(?:[eE][+-]?\d+)?%)\s*(,\s*(\+?\d*\.?\d+(?:[eE][+-]?\d+)?%?)\s*)?\)$
17
+ examples:
18
+ - 'hsl(0, 100%, 50%)'
19
+ - 'hsl(120, 100%, 50%)'
20
+ - 'hsl(240, 100%, 50%)'
21
+ - 'hsl(0, 0%, 0%)'
22
+ - 'hsla(0, 100%, 50%, 1)'
23
+ - 'hsla( 120, 100%, 50%, 0.5 )'
24
+ - 'hsla(240,100%,50%,0.25)'
25
+ - 'hsla( 10deg 0% 0% 0.5 )'
@@ -0,0 +1,26 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/hsla-array
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: HSLA Color Array
4
+ description: |
5
+ An HSLA color code as an array of four numbers:
6
+ hue in degrees (0-360), followed by saturation, lightness and alpha as fractions between 0 and 1.
7
+ type: array
8
+ minItems: 4
9
+ maxItems: 4
10
+ prefixItems:
11
+ - title: Hue
12
+ type: integer
13
+ minimum: 0
14
+ maximum: 360
15
+ - title: Saturation
16
+ type: number
17
+ minimum: 0
18
+ maximum: 1
19
+ - title: Lightness
20
+ type: number
21
+ minimum: 0
22
+ maximum: 1
23
+ - title: Alpha
24
+ type: number
25
+ minimum: 0
26
+ maximum: 1
@@ -0,0 +1,13 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/rgb-array
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: RGB Color Array
4
+ description: An RGB color code as an array of three integers between 0 and 255.
5
+ type: array
6
+ minItems: 3
7
+ maxItems: 3
8
+ items:
9
+ title: RGB Color Component
10
+ description: An integer between 0 and 255.
11
+ type: integer
12
+ minimum: 0
13
+ maximum: 255
@@ -0,0 +1,29 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/rgb-string
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: RGB(A) Color String
4
+ description: |
5
+ A CSS [`rgb()`/`rgba()`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb)
6
+ functional notation expressing a
7
+ [CSS `color` property](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
8
+ in the sRGB color space according to its red, green, and blue components.
9
+ An optional alpha channel may be specified for transparency.
10
+ type: string
11
+ oneOf:
12
+ # New format
13
+ - pattern: ^rgba?\(\s*(([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%?)|(none))\s*(([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%?)|(none))\s*(([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%?)|(none))\s*(/\s*(([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%?)|(none))\s*)?\)$
14
+ # Old format (numbers)
15
+ - pattern: ^rgba?\(\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*,\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*,\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*(,\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%?)\s*)?\)$
16
+ # Old format (percentages)
17
+ - pattern: ^rgba?\(\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%)\s*,\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%)\s*,\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%)\s*(,\s*([+]?\d*\.?\d+(?:[eE][+-]?\d+)?%?)\s*)?\)$
18
+ examples:
19
+ - 'rgb(255, 0, 0)'
20
+ - 'rgb(0,255,0)'
21
+ - 'rgb( 0, 0, 255 )'
22
+ - 'rgb( 255,255,255 )'
23
+ - 'rgb(100% 0% 0%)'
24
+ - 'rgb(0% 100% 0% / 10%)'
25
+ - 'rgb( 0 0 100 / 0.5 )'
26
+ - 'rgba(255, 0, 0, 1)'
27
+ - 'rgba(0,255,0,0.5)'
28
+ - 'rgba( 0, 0, 255, 0.25 )'
29
+ - 'rgba( 255,255,255,0 )'
@@ -0,0 +1,27 @@
1
+ $id: https://jsonschemata.repodynamics.com/color/rgba-array
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: RGBA Color Array
4
+ description: |
5
+ An RGBA color code as an array of four numbers:
6
+ three integers between 0 and 255 for red, green, and blue, and
7
+ a number between 0 and 1 for alpha.
8
+ type: array
9
+ minItems: 4
10
+ maxItems: 4
11
+ prefixItems:
12
+ - title: Red
13
+ type: integer
14
+ minimum: 0
15
+ maximum: 255
16
+ - title: Green
17
+ type: integer
18
+ minimum: 0
19
+ maximum: 255
20
+ - title: Blue
21
+ type: integer
22
+ minimum: 0
23
+ maximum: 255
24
+ - title: Alpha
25
+ type: number
26
+ minimum: 0
27
+ maximum: 1
@@ -0,0 +1,49 @@
1
+ $id: https://jsonschemata.repodynamics.com/config/github/form/body
2
+ title: GitHub Form Body
3
+ description: |
4
+ Definition of the elements in a GitHub form, according to GitHub's
5
+ [syntax for GitHub's form schema](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema),
6
+ which is shared between issue forms and discussion category forms.
7
+
8
+ Each form must have a body, defined as an array of form elements for requesting user input.
9
+ Each form element itself is defined as a set of key-value pairs
10
+ that determine the type of the element, the properties of the element,
11
+ and the constraints you want to apply to the element.
12
+ type: array
13
+ minItems: 1
14
+ items:
15
+ title: Form Element
16
+ description: Definition of a form element in the body.
17
+ type: object
18
+ required: [ type, attributes ]
19
+ properties:
20
+ type:
21
+ title: Type
22
+ description: Type of the element.
23
+ type: string
24
+ enum: [ checkboxes, dropdown, input, markdown, textarea ]
25
+ attributes:
26
+ title: Attributes
27
+ description: |
28
+ A set of key-value pairs that define the attributes of the element.
29
+ Depending on the `type` of the element, different keys are available,
30
+ defined in GitHub's [form schema syntax](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema).
31
+ type: object
32
+ additionalProperties: true
33
+ id:
34
+ title: ID
35
+ description: |
36
+ The canonical identifier for the element in URL query parameter prefills.
37
+ It can only use alpha-numeric characters, hyphens, and underscores,
38
+ and must be unique in the form definition.
39
+ Note that `markdown` elements cannot have an ID.
40
+ type: string
41
+ pattern: ^[A-Za-z][A-Za-z0-9_-]*$
42
+ validations:
43
+ title: Validations
44
+ description: |
45
+ A set of key-value pairs that set constraints on the element.
46
+ Depending on the `type` of the element, different keys are available,
47
+ defined in GitHub's [form schema syntax](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema).
48
+ type: object
49
+ additionalProperties: true
@@ -0,0 +1,7 @@
1
+ $id: https://jsonschemata.repodynamics.com/config/github/label/description
2
+ title: GitHub Label Description
3
+ description: Description of a GitHub label.
4
+ type: string
5
+ maxLength: 100
6
+ examples:
7
+ - The issue is being triaged.
@@ -0,0 +1,11 @@
1
+ $id: https://jsonschemata.repodynamics.com/date/yyyy-mm-dd
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: Date (YYYY-MM-DD)
4
+ description: |
5
+ A date in the format `YYYY-MM-DD`, e.g., `2024-12-31`.
6
+ type: string
7
+ format: date
8
+ pattern: ^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$
9
+ examples:
10
+ - '1900-01-01'
11
+ - '2024-12-31'
@@ -0,0 +1,14 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/doi
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: DOI
4
+ description: |
5
+ A Digital Object Identifier (DOI)
6
+ is a unique alphanumeric string assigned to a digital object,
7
+ such as a journal article, dataset, or software package.
8
+ DOIs are used to provide a persistent link to the object,
9
+ ensuring that it can be found and accessed even if its location changes.
10
+ type: string
11
+ format: doi
12
+ pattern: ^10\.\d{4,9}(\.\d+)?/[A-Za-z0-9:/_;\-\.\(\)\[\]\\]+$
13
+ examples:
14
+ - 10.5281/zenodo.1003150
@@ -0,0 +1,10 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/email
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: Email Address
4
+ description: |
5
+ An email address.
6
+ type: string
7
+ pattern: ^[\S]+@[\S]+\.[\S]{2,}$
8
+ format: email
9
+ examples:
10
+ - info@repodynamics.com
@@ -0,0 +1,9 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/github/node
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: GitHub Node ID
4
+ description: |
5
+ This is a unique identifier used in the GitHub GraphQL API to identify resources
6
+ such as user/organization accounts, repositories, issues, pull requests, etc.
7
+ type: string
8
+ examples:
9
+ - O_kgDOCFDOjA
@@ -0,0 +1,10 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/github/rest
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: GitHub ID
4
+ description: |
5
+ This is a unique identifier used in the GitHub REST API to identify resources
6
+ such as user/organization accounts, repositories, issues, pull requests, etc.
7
+ type: integer
8
+ minimum: 1
9
+ examples:
10
+ - 139513484
@@ -0,0 +1,12 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/github/user
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: GitHub Username
4
+ description: |
5
+ This is a unique string that identifies a user or organization on GitHub.
6
+ Usernames must start with an alphanumeric character and can contain
7
+ alphanumeric characters and hyphens.
8
+ Usernames cannot contain spaces or special characters.
9
+ type: string
10
+ pattern: ^[A-Za-z0-9][A-Za-z0-9\-]*$
11
+ examples:
12
+ - RepoDynamics
@@ -0,0 +1,7 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/linkedin
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: LinkedIn ID
4
+ description: |
5
+ Username of a LinkedIn account.
6
+ type: string
7
+ pattern: ^[a-zA-Z0-9-]{3,100}$
@@ -0,0 +1,11 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/orcid
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: ORCID ID.
4
+ description: |
5
+ An ORCID iD is a unique identifier for researchers and contributors.
6
+ It is used to distinguish individuals with similar names and to ensure
7
+ that their work is correctly attributed.a
8
+ type: string
9
+ pattern: '[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]{1}'
10
+ examples:
11
+ - 0000-0002-1825-0097
@@ -0,0 +1,9 @@
1
+ $id: https://jsonschemata.repodynamics.com/id/researchgate
2
+ $schema: https://json-schema.org/draft/2020-12/schema
3
+ title: ResearchGate ID
4
+ description: |
5
+ Username of a ResearchGate account.
6
+ type: string
7
+ pattern: ^[a-zA-Z0-9-]{3,100}$
8
+ examples:
9
+ - RepoDynamics