@rathnasgala2/schemas 3.8.0 → 3.9.0
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.
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +22 -0
- package/docs/catalogs/schema-inventory.json +3 -3
- package/examples/valid/problem/rules.json +35 -0
- package/fixtures/boundary/problem/rules.json +83 -0
- package/fixtures/invalid/problem/SCHEMA_ARRAY_TOO_LONG/cases.json +13 -0
- package/fixtures/invalid/problem/SCHEMA_ENUM_INVALID/cases.json +11 -0
- package/fixtures/invalid/problem/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
- package/fixtures/invalid/problem/SCHEMA_STRING_TOO_SHORT/cases.json +11 -0
- package/fixtures/invalid/problem/SCHEMA_TYPE_INVALID/cases.json +29 -0
- package/fixtures/manifest.json +182 -2
- package/fixtures/unknown-field/problem/rules.json +8 -0
- package/generated/browser/validator-core.mjs +1 -1
- package/generated/typescript/contracts/problem.d.ts +9 -0
- package/openapi/http-catalog.json +2 -2
- package/openapi/openapi.yaml +41 -1
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/problem.schema.json +21 -1
|
@@ -11,7 +11,16 @@ export type ProblemExtensionKey = string;
|
|
|
11
11
|
|
|
12
12
|
export type ProblemFieldError = Readonly<{
|
|
13
13
|
readonly code: ProblemProblemCode;
|
|
14
|
+
readonly paths?: ReadonlyArray<string>;
|
|
14
15
|
readonly pointer: string;
|
|
16
|
+
readonly reason?:
|
|
17
|
+
| 'AUTHOR_EDITED'
|
|
18
|
+
| 'BRANCH_PROTECTION'
|
|
19
|
+
| 'REPOSITORY_ARCHIVED'
|
|
20
|
+
| 'INSTALLATION_SUSPENDED'
|
|
21
|
+
| 'WORKFLOWS_PERMISSION_MISSING'
|
|
22
|
+
| 'AUTHORIZATION_LOST'
|
|
23
|
+
| 'FORBIDDEN';
|
|
15
24
|
}>;
|
|
16
25
|
|
|
17
26
|
export type ProblemGitObjectId = string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "2.0.0",
|
|
3
3
|
"sourceDesignRevision": "a53052955ceb6c1aa10c886289dc832eedfe6de0a00004df07d353ac19c4403a",
|
|
4
|
-
"openApiDigest": "sha256:
|
|
4
|
+
"openApiDigest": "sha256:9612379eda4997a04a0e3d0bcb4c3e7d68c5ba76688d4c733ab2b91520a914f7",
|
|
5
5
|
"operations": [
|
|
6
6
|
{
|
|
7
7
|
"operationId": "getInternalHealth",
|
|
@@ -2121,5 +2121,5 @@
|
|
|
2121
2121
|
"sourceFragment": "workloads"
|
|
2122
2122
|
}
|
|
2123
2123
|
],
|
|
2124
|
-
"digest": "sha256:
|
|
2124
|
+
"digest": "sha256:e203c10513b422926292b5ed11f582de9ad4522fcdb824eed3fc332f639a819f"
|
|
2125
2125
|
}
|
package/openapi/openapi.yaml
CHANGED
|
@@ -12796,10 +12796,30 @@ components:
|
|
|
12796
12796
|
properties:
|
|
12797
12797
|
code:
|
|
12798
12798
|
$ref: "#/components/schemas/PortableProblemProblemCode"
|
|
12799
|
+
paths:
|
|
12800
|
+
description: "SCHEMA-3.9.0, optional: the managed repository file paths the error is about, as the App lists them. Absent from older servers."
|
|
12801
|
+
items:
|
|
12802
|
+
maxLength: 512
|
|
12803
|
+
minLength: 1
|
|
12804
|
+
type: string
|
|
12805
|
+
maxItems: 50
|
|
12806
|
+
minItems: 0
|
|
12807
|
+
type: array
|
|
12799
12808
|
pointer:
|
|
12800
12809
|
maxLength: 1024
|
|
12801
12810
|
minLength: 1
|
|
12802
12811
|
type: string
|
|
12812
|
+
reason:
|
|
12813
|
+
description: "SCHEMA-3.9.0, optional: why a REPOSITORY_NEEDS_UPDATE error needs the author. AUTHOR_EDITED: a managed file was changed in a way only the author may resolve. BRANCH_PROTECTION: GitHub refused Galascribe's own commit. REPOSITORY_ARCHIVED: the repository is archived. INSTALLATION_SUSPENDED: the GitHub App installation is suspended. WORKFLOWS_PERMISSION_MISSING: the installation has not accepted the workflows permission. AUTHORIZATION_LOST: Galascribe lost its GitHub authorization. FORBIDDEN: GitHub refused for another permission reason. Absent from older servers and for other codes; a client shows a generic sentence for a value it does not know."
|
|
12814
|
+
enum:
|
|
12815
|
+
- AUTHOR_EDITED
|
|
12816
|
+
- BRANCH_PROTECTION
|
|
12817
|
+
- REPOSITORY_ARCHIVED
|
|
12818
|
+
- INSTALLATION_SUSPENDED
|
|
12819
|
+
- WORKFLOWS_PERMISSION_MISSING
|
|
12820
|
+
- AUTHORIZATION_LOST
|
|
12821
|
+
- FORBIDDEN
|
|
12822
|
+
type: string
|
|
12803
12823
|
required:
|
|
12804
12824
|
- pointer
|
|
12805
12825
|
- code
|
|
@@ -17403,7 +17423,7 @@ components:
|
|
|
17403
17423
|
type: object
|
|
17404
17424
|
SiteAttentionItem:
|
|
17405
17425
|
additionalProperties: false
|
|
17406
|
-
description: "Something that needs a person to act. The list is empty when nothing does. SCHEMA-3.3.0: `SCHEDULED_PUBLISH_FAILED` means a scheduled publish could not start at its time; `relatedPublishId` names the schedule and `reasonCode` the first precondition that failed (a client maps the values it knows to a sentence and shows a generic one otherwise); nothing was merged. `DOMAIN_PUBLISH_REQUIRED` means a custom domain is live and the next publish moves the site's address to it. `DOMAIN_DEGRADED` means a live custom domain stopped working; `reasonCode` names why and the domain read carries the next step."
|
|
17426
|
+
description: "Something that needs a person to act. The list is empty when nothing does. SCHEMA-3.3.0: `SCHEDULED_PUBLISH_FAILED` means a scheduled publish could not start at its time; `relatedPublishId` names the schedule and `reasonCode` the first precondition that failed (a client maps the values it knows to a sentence and shows a generic one otherwise); nothing was merged. `DOMAIN_PUBLISH_REQUIRED` means a custom domain is live and the next publish moves the site's address to it. `DOMAIN_DEGRADED` means a live custom domain stopped working; `reasonCode` names why and the domain read carries the next step. SCHEMA-3.9.0: on `REPOSITORY_NEEDS_UPDATE`, `reason` names the cause and `paths` the managed repository files involved, so a client can say what to do and list the files (both are absent from older servers and for other codes; show a generic sentence for a `reason` you do not know). `AUTHOR_EDITED`: a managed file differs from the version Galascribe manages and only the author may resolve it. `BRANCH_PROTECTION`: GitHub refused Galascribe's own repair commit. `REPOSITORY_ARCHIVED`: the repository is archived. `INSTALLATION_SUSPENDED`: the GitHub App installation is suspended. `WORKFLOWS_PERMISSION_MISSING`: the installation has not accepted the workflows permission. `AUTHORIZATION_LOST`: Galascribe lost its GitHub authorization. `FORBIDDEN`: GitHub refused for another permission reason. The same `reason` and `paths` ride on the `REPOSITORY_NEEDS_UPDATE` entry of a publish refusal's `errors`."
|
|
17407
17427
|
properties:
|
|
17408
17428
|
code:
|
|
17409
17429
|
enum:
|
|
@@ -17422,6 +17442,26 @@ components:
|
|
|
17422
17442
|
- DOMAIN_PUBLISH_REQUIRED
|
|
17423
17443
|
- DOMAIN_DEGRADED
|
|
17424
17444
|
type: string
|
|
17445
|
+
paths:
|
|
17446
|
+
description: SCHEMA-3.9.0. The managed repository files a `REPOSITORY_NEEDS_UPDATE` is about; may be empty when the cause is not about a file.
|
|
17447
|
+
items:
|
|
17448
|
+
maxLength: 512
|
|
17449
|
+
minLength: 1
|
|
17450
|
+
type: string
|
|
17451
|
+
maxItems: 50
|
|
17452
|
+
minItems: 0
|
|
17453
|
+
type: array
|
|
17454
|
+
reason:
|
|
17455
|
+
description: SCHEMA-3.9.0. Why a `REPOSITORY_NEEDS_UPDATE` needs the author.
|
|
17456
|
+
enum:
|
|
17457
|
+
- AUTHOR_EDITED
|
|
17458
|
+
- BRANCH_PROTECTION
|
|
17459
|
+
- REPOSITORY_ARCHIVED
|
|
17460
|
+
- INSTALLATION_SUSPENDED
|
|
17461
|
+
- WORKFLOWS_PERMISSION_MISSING
|
|
17462
|
+
- AUTHORIZATION_LOST
|
|
17463
|
+
- FORBIDDEN
|
|
17464
|
+
type: string
|
|
17425
17465
|
reasonCode:
|
|
17426
17466
|
maxLength: 80
|
|
17427
17467
|
minLength: 1
|
package/package.json
CHANGED
package/sbom.cdx.json
CHANGED
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"type": "library",
|
|
98
98
|
"name": "schemas",
|
|
99
99
|
"group": "@rathnasgala2",
|
|
100
|
-
"version": "3.
|
|
101
|
-
"bom-ref": "@rathnasgala2/schemas@3.
|
|
100
|
+
"version": "3.9.0",
|
|
101
|
+
"bom-ref": "@rathnasgala2/schemas@3.9.0",
|
|
102
102
|
"description": "Executable JSON Schema and OpenAPI contracts for Galascribe",
|
|
103
103
|
"licenses": [
|
|
104
104
|
{
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"purl": "pkg:npm/%40rathnasgala2/schemas@3.
|
|
111
|
+
"purl": "pkg:npm/%40rathnasgala2/schemas@3.9.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Frathnasgala2%2Fschema.git",
|
|
112
112
|
"externalReferences": [
|
|
113
113
|
{
|
|
114
114
|
"url": "https://github.com/rathnasgala2/schema/issues",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"type": "library",
|
|
154
154
|
"name": "ajv-formats",
|
|
155
155
|
"version": "3.0.1",
|
|
156
|
-
"bom-ref": "@rathnasgala2/schemas@3.
|
|
156
|
+
"bom-ref": "@rathnasgala2/schemas@3.9.0|ajv-formats@3.0.1",
|
|
157
157
|
"licenses": [
|
|
158
158
|
{
|
|
159
159
|
"license": {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"type": "library",
|
|
188
188
|
"name": "ajv",
|
|
189
189
|
"version": "8.20.0",
|
|
190
|
-
"bom-ref": "@rathnasgala2/schemas@3.
|
|
190
|
+
"bom-ref": "@rathnasgala2/schemas@3.9.0|ajv@8.20.0",
|
|
191
191
|
"licenses": [
|
|
192
192
|
{
|
|
193
193
|
"license": {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
"type": "library",
|
|
222
222
|
"name": "fast-deep-equal",
|
|
223
223
|
"version": "3.1.3",
|
|
224
|
-
"bom-ref": "@rathnasgala2/schemas@3.
|
|
224
|
+
"bom-ref": "@rathnasgala2/schemas@3.9.0|fast-deep-equal@3.1.3",
|
|
225
225
|
"licenses": [
|
|
226
226
|
{
|
|
227
227
|
"license": {
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"type": "library",
|
|
256
256
|
"name": "fast-uri",
|
|
257
257
|
"version": "3.1.8",
|
|
258
|
-
"bom-ref": "@rathnasgala2/schemas@3.
|
|
258
|
+
"bom-ref": "@rathnasgala2/schemas@3.9.0|fast-uri@3.1.8",
|
|
259
259
|
"licenses": [
|
|
260
260
|
{
|
|
261
261
|
"license": {
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
"type": "library",
|
|
290
290
|
"name": "json-schema-traverse",
|
|
291
291
|
"version": "1.0.0",
|
|
292
|
-
"bom-ref": "@rathnasgala2/schemas@3.
|
|
292
|
+
"bom-ref": "@rathnasgala2/schemas@3.9.0|json-schema-traverse@1.0.0",
|
|
293
293
|
"licenses": [
|
|
294
294
|
{
|
|
295
295
|
"license": {
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
"type": "library",
|
|
324
324
|
"name": "require-from-string",
|
|
325
325
|
"version": "2.0.2",
|
|
326
|
-
"bom-ref": "@rathnasgala2/schemas@3.
|
|
326
|
+
"bom-ref": "@rathnasgala2/schemas@3.9.0|require-from-string@2.0.2",
|
|
327
327
|
"licenses": [
|
|
328
328
|
{
|
|
329
329
|
"license": {
|
|
@@ -1064,10 +1064,10 @@
|
|
|
1064
1064
|
],
|
|
1065
1065
|
"dependencies": [
|
|
1066
1066
|
{
|
|
1067
|
-
"ref": "@rathnasgala2/schemas@3.
|
|
1067
|
+
"ref": "@rathnasgala2/schemas@3.9.0",
|
|
1068
1068
|
"dependsOn": [
|
|
1069
|
-
"@rathnasgala2/schemas@3.
|
|
1070
|
-
"@rathnasgala2/schemas@3.
|
|
1069
|
+
"@rathnasgala2/schemas@3.9.0|ajv-formats@3.0.1",
|
|
1070
|
+
"@rathnasgala2/schemas@3.9.0|ajv@8.20.0",
|
|
1071
1071
|
"pkg:npm/semver@7.8.5",
|
|
1072
1072
|
"urn:gala:source-data:iana-ipv4-special-registry",
|
|
1073
1073
|
"urn:gala:source-data:iana-ipv6-special-registry",
|
|
@@ -1089,31 +1089,31 @@
|
|
|
1089
1089
|
]
|
|
1090
1090
|
},
|
|
1091
1091
|
{
|
|
1092
|
-
"ref": "@rathnasgala2/schemas@3.
|
|
1092
|
+
"ref": "@rathnasgala2/schemas@3.9.0|ajv-formats@3.0.1",
|
|
1093
1093
|
"dependsOn": [
|
|
1094
|
-
"@rathnasgala2/schemas@3.
|
|
1094
|
+
"@rathnasgala2/schemas@3.9.0|ajv@8.20.0"
|
|
1095
1095
|
]
|
|
1096
1096
|
},
|
|
1097
1097
|
{
|
|
1098
|
-
"ref": "@rathnasgala2/schemas@3.
|
|
1098
|
+
"ref": "@rathnasgala2/schemas@3.9.0|ajv@8.20.0",
|
|
1099
1099
|
"dependsOn": [
|
|
1100
|
-
"@rathnasgala2/schemas@3.
|
|
1101
|
-
"@rathnasgala2/schemas@3.
|
|
1102
|
-
"@rathnasgala2/schemas@3.
|
|
1103
|
-
"@rathnasgala2/schemas@3.
|
|
1100
|
+
"@rathnasgala2/schemas@3.9.0|fast-deep-equal@3.1.3",
|
|
1101
|
+
"@rathnasgala2/schemas@3.9.0|fast-uri@3.1.8",
|
|
1102
|
+
"@rathnasgala2/schemas@3.9.0|json-schema-traverse@1.0.0",
|
|
1103
|
+
"@rathnasgala2/schemas@3.9.0|require-from-string@2.0.2"
|
|
1104
1104
|
]
|
|
1105
1105
|
},
|
|
1106
1106
|
{
|
|
1107
|
-
"ref": "@rathnasgala2/schemas@3.
|
|
1107
|
+
"ref": "@rathnasgala2/schemas@3.9.0|fast-deep-equal@3.1.3"
|
|
1108
1108
|
},
|
|
1109
1109
|
{
|
|
1110
|
-
"ref": "@rathnasgala2/schemas@3.
|
|
1110
|
+
"ref": "@rathnasgala2/schemas@3.9.0|fast-uri@3.1.8"
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
|
-
"ref": "@rathnasgala2/schemas@3.
|
|
1113
|
+
"ref": "@rathnasgala2/schemas@3.9.0|json-schema-traverse@1.0.0"
|
|
1114
1114
|
},
|
|
1115
1115
|
{
|
|
1116
|
-
"ref": "@rathnasgala2/schemas@3.
|
|
1116
|
+
"ref": "@rathnasgala2/schemas@3.9.0|require-from-string@2.0.2"
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
1119
|
"ref": "pkg:npm/semver@7.8.5"
|
|
@@ -186,7 +186,27 @@
|
|
|
186
186
|
"required": ["pointer", "code"],
|
|
187
187
|
"properties": {
|
|
188
188
|
"pointer": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
|
189
|
-
"code": { "$ref": "#/$defs/problemCode" }
|
|
189
|
+
"code": { "$ref": "#/$defs/problemCode" },
|
|
190
|
+
"reason": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"enum": [
|
|
193
|
+
"AUTHOR_EDITED",
|
|
194
|
+
"BRANCH_PROTECTION",
|
|
195
|
+
"REPOSITORY_ARCHIVED",
|
|
196
|
+
"INSTALLATION_SUSPENDED",
|
|
197
|
+
"WORKFLOWS_PERMISSION_MISSING",
|
|
198
|
+
"AUTHORIZATION_LOST",
|
|
199
|
+
"FORBIDDEN"
|
|
200
|
+
],
|
|
201
|
+
"description": "SCHEMA-3.9.0, optional: why a REPOSITORY_NEEDS_UPDATE error needs the author. AUTHOR_EDITED: a managed file was changed in a way only the author may resolve. BRANCH_PROTECTION: GitHub refused Galascribe's own commit. REPOSITORY_ARCHIVED: the repository is archived. INSTALLATION_SUSPENDED: the GitHub App installation is suspended. WORKFLOWS_PERMISSION_MISSING: the installation has not accepted the workflows permission. AUTHORIZATION_LOST: Galascribe lost its GitHub authorization. FORBIDDEN: GitHub refused for another permission reason. Absent from older servers and for other codes; a client shows a generic sentence for a value it does not know."
|
|
202
|
+
},
|
|
203
|
+
"paths": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
206
|
+
"minItems": 0,
|
|
207
|
+
"maxItems": 50,
|
|
208
|
+
"description": "SCHEMA-3.9.0, optional: the managed repository file paths the error is about, as the App lists them. Absent from older servers."
|
|
209
|
+
}
|
|
190
210
|
},
|
|
191
211
|
"additionalProperties": false
|
|
192
212
|
}
|