Skip to content

Commit

Permalink
refactor: fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed Sep 5, 2023
1 parent 23898e8 commit f549d1d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/td-tools/src/util/asset-interface-description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,6 @@ interface SubmodelInformation {
endpointMetadataArray: Array<Record<string, unknown>>;
}

// TODO can/shall we define als AAS/AID contructs? Difficult since idShort and value array is used *everywhere*
interface EndpointMetadata {
idShort: "EndpointMetadata";
value: Array<EndpointMetadataValue>;
modelType: "SubmodelElementCollection";
}

interface EndpointMetadataValue {
idShort: string; // base, contentType, securityDefinitions
}

const noSecSS: SecurityScheme = { scheme: "nosec" };
const noSecName = 0 + "_sc";

export class AssetInterfaceDescriptionUtil {
Expand Down Expand Up @@ -423,6 +411,7 @@ export class AssetInterfaceDescriptionUtil {
thing.securityDefinitions = this.getSecurityDefinitionsFromEndpointMetadata(endpointMetadata);
thing.security = this.getSecurityFromEndpointMetadata(endpointMetadata);
// iterate over securitySchemes
// eslint-disable-next-line unused-imports/no-unused-vars
for (const [key, value] of Object.entries(thing.securityDefinitions)) {
// console.log(key, value);
// TODO we could change the name to avoid name collisions. Shall we do so?
Expand Down

0 comments on commit f549d1d

Please sign in to comment.