@goast/kotlin 0.2.7 → 0.2.8
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.
|
@@ -363,6 +363,10 @@ class DefaultKotlinModelGenerator extends file_generator_1.KotlinFileGenerator {
|
|
|
363
363
|
if (schema.kind === 'object' && schema.properties.size === 0 && schema.additionalProperties) {
|
|
364
364
|
return false;
|
|
365
365
|
}
|
|
366
|
+
// Dynamically generated schemas do not have its own type declaration
|
|
367
|
+
if (!ctx.data.schemas.some((x) => x.id === schema.id)) {
|
|
368
|
+
return false;
|
|
369
|
+
}
|
|
366
370
|
return true;
|
|
367
371
|
}
|
|
368
372
|
getDeclarationTypeName(ctx, args) {
|
|
@@ -360,6 +360,10 @@ export class DefaultKotlinModelGenerator extends KotlinFileGenerator {
|
|
|
360
360
|
if (schema.kind === 'object' && schema.properties.size === 0 && schema.additionalProperties) {
|
|
361
361
|
return false;
|
|
362
362
|
}
|
|
363
|
+
// Dynamically generated schemas do not have its own type declaration
|
|
364
|
+
if (!ctx.data.schemas.some((x) => x.id === schema.id)) {
|
|
365
|
+
return false;
|
|
366
|
+
}
|
|
363
367
|
return true;
|
|
364
368
|
}
|
|
365
369
|
getDeclarationTypeName(ctx, args) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goast/kotlin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"repository": "https://github.com/MaSch0212/goast.git",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Marc Schmidt (MaSch0212)",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"fs-extra": "^11.2.0",
|
|
13
13
|
"node-fetch": "^2.7.0",
|
|
14
14
|
"yaml": "^2.4.1",
|
|
15
|
-
"@goast/core": "0.2.
|
|
15
|
+
"@goast/core": "0.2.2",
|
|
16
16
|
"tslib": "2.6.2"
|
|
17
17
|
},
|
|
18
18
|
"module": "./esm/index.js",
|