@balena/open-balena-api 41.0.0-build-Limit-size-of-json-fields-8ba3805535d57552cf9ecfb0bce9af189cd55791-3 → 41.0.0-build-Limit-size-of-json-fields-861cb2bd4374d7105382c2ffec5d500b3d8ddf2b-1
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/dist/balena.sbvr
CHANGED
@@ -802,6 +802,8 @@ Fact type: release has asset key
|
|
802
802
|
-- release asset
|
803
803
|
Fact type: release asset has asset
|
804
804
|
Necessity: each release asset has at most one asset.
|
805
|
+
-- The content_type size is as per RFC6838 recommendation: "<type-name> and <subtype-name> SHOULD be limited to 64 characters."
|
806
|
+
Necessity: each release asset that has an asset, has an asset that has a Filename (Type) that has a Length (Type) that is less than or equal to 255 and has a Content Type (Type) that has a Length (Type) that is less than or equal to 129.
|
805
807
|
|
806
808
|
|
807
809
|
-- service environment variable
|
@@ -72,5 +72,27 @@ BEGIN
|
|
72
72
|
)
|
73
73
|
));
|
74
74
|
END IF;
|
75
|
+
|
76
|
+
IF NOT EXISTS (
|
77
|
+
SELECT 1
|
78
|
+
FROM information_schema.table_constraints tc
|
79
|
+
WHERE tc.CONSTRAINT_TYPE = 'CHECK'
|
80
|
+
AND tc.table_schema = CURRENT_SCHEMA()
|
81
|
+
AND tc.table_name = 'release asset'
|
82
|
+
AND tc.constraint_name = 'release asset$n20df/3vR+3GaNU9J/1NnyfOB3CWMZvoFCc6mcuJdgQ='
|
83
|
+
) THEN
|
84
|
+
ALTER TABLE "release asset" ADD CONSTRAINT "release asset$n20df/3vR+3GaNU9J/1NnyfOB3CWMZvoFCc6mcuJdgQ=" CHECK (NOT (
|
85
|
+
"asset" IS NOT NULL
|
86
|
+
AND NOT (
|
87
|
+
LENGTH("asset" #>> ARRAY['filename']) <= 255
|
88
|
+
AND LENGTH("asset" #>> ARRAY['filename']) IS NOT NULL
|
89
|
+
AND "asset" #>> ARRAY['filename'] IS NOT NULL
|
90
|
+
AND LENGTH("asset" #>> ARRAY['content_type']) <= 129
|
91
|
+
AND LENGTH("asset" #>> ARRAY['content_type']) IS NOT NULL
|
92
|
+
AND "asset" #>> ARRAY['content_type'] IS NOT NULL
|
93
|
+
AND "asset" IS NOT NULL
|
94
|
+
)
|
95
|
+
));
|
96
|
+
END IF;
|
75
97
|
END;
|
76
98
|
$$;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "41.0.0-build-Limit-size-of-json-fields-
|
4
|
+
"version": "41.0.0-build-Limit-size-of-json-fields-861cb2bd4374d7105382c2ffec5d500b3d8ddf2b-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -174,6 +174,6 @@
|
|
174
174
|
"import": "@swc-node/register/esm-register"
|
175
175
|
},
|
176
176
|
"versionist": {
|
177
|
-
"publishedAt": "2025-
|
177
|
+
"publishedAt": "2025-08-01T17:20:05.953Z"
|
178
178
|
}
|
179
179
|
}
|