Skip to content

Commit dba29bd

Browse files
committed
wip: fix bad types
1 parent 9a93810 commit dba29bd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/live-status-gateway/api/schemas/adLibs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ $defs:
4040
properties:
4141
segmentId:
4242
description: Unique id of the segment this adLib belongs to
43+
type: string
4344
partId:
4445
description: Unique id of the part this adLib belongs to
46+
type: string
4547
required: [segmentId, partId]
4648
examples:
4749
- id: 'C6K_yIMuGFUk8X_L9A9_jRT6aq4_'

packages/live-status-gateway/gen.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const renderDescription = ({ renderer, content, item }) => {
1818
* Preset which adds descriptions
1919
* Modified from the original, to omit examples
2020
*
21-
* @implements {TypeScriptPreset}
21+
* @type {import('@asyncapi/modelina').TypeScriptPreset}
2222
*/
2323
const CUSTOM_TS_DESCRIPTION_PRESET = {
2424
class: {
@@ -48,7 +48,6 @@ const CUSTOM_TS_DESCRIPTION_PRESET = {
4848
},
4949
},
5050
}
51-
//# sourceMappingURL=DescriptionPreset.js.map
5251

5352
const generator = new TypeScriptGenerator({
5453
modelType: 'interface',
@@ -72,7 +71,6 @@ const models = await generator.generate(asyncApiDoc.document)
7271
const allModelNames = []
7372
const allmodelContent = []
7473
for (const model of models) {
75-
// console.log(model.result, model.modelName)
7674
allModelNames.push(model.modelName)
7775
allmodelContent.push(model.result)
7876

packages/live-status-gateway/src/generated/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,11 @@ interface AdLib {
477477
/**
478478
* Unique id of the segment this adLib belongs to
479479
*/
480-
'segmentId': any;
480+
'segmentId': string;
481481
/**
482482
* Unique id of the part this adLib belongs to
483483
*/
484-
'partId': any;
484+
'partId': string;
485485
'additionalProperties'?: Record<string, any>;
486486
}
487487

0 commit comments

Comments
 (0)