cddl2py 0.2.2 → 0.3.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/build/index.js +2 -1
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -473,7 +473,8 @@ function resolveType(t, ctx, options = {}) {
|
|
|
473
473
|
}
|
|
474
474
|
return mapped;
|
|
475
475
|
}
|
|
476
|
-
if (isPropertyReference(t) && t.Value === 'null') {
|
|
476
|
+
if (isPropertyReference(t) && t.Value === 'null' && !isLiteralWithValue(t)) {
|
|
477
|
+
// a bare `null` reference is the null type; a quoted "null" is a string literal
|
|
477
478
|
return 'None';
|
|
478
479
|
}
|
|
479
480
|
if (isGroup(t)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cddl2py",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "A Node.js package that can generate Python type definitions (with optional Pydantic support) based on a CDDL file",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/yargs": "^17.0.35",
|
|
33
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^26.0.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"yargs": "^18.0.0",
|
|
37
|
-
"cddl": "0.
|
|
37
|
+
"cddl": "0.21.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"release": "release-it --config .release-it.ts --VV",
|