diff --git a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/car-cancellation-policy-processor.ts b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/car-cancellation-policy-processor.ts index 406247d..108cc62 100644 --- a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/car-cancellation-policy-processor.ts +++ b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/car-cancellation-policy-processor.ts @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types'; export class CarCancellationPolicyProcessor extends Processor { rules: RuleFunction[]; + id: 'car-cancellation-policy'; constructor() { super(); @@ -13,10 +14,6 @@ export class CarCancellationPolicyProcessor extends Processor { ].map(rule => rule.bind(this)); } - readRule(ruleName: string): NapiConfig { - return super.readRule('car-cancellation-policy', ruleName); - } - changeClassParamType(root: SgNode): Edit[] { const config = this.readRule('change-class-param-type'); diff --git a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-listings-operation-params-processor.ts b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-listings-operation-params-processor.ts index 05a1eef..ec338a7 100644 --- a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-listings-operation-params-processor.ts +++ b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-listings-operation-params-processor.ts @@ -5,6 +5,7 @@ import {RuleFunction} from './shared.types'; export class GetLodgingListingsOperationParamsProcessor extends Processor { rules: RuleFunction[]; + id: 'get-lodging-listings-operation-params'; constructor() { super(); @@ -15,10 +16,6 @@ export class GetLodgingListingsOperationParamsProcessor extends Processor { ].map(rule => rule.bind(this)); } - readRule(ruleName: string): NapiConfig { - return super.readRule('get-lodging-listings-operation-params', ruleName); - } - removeRoomBuilderMethods(root: SgNode): Edit[] { const config = this.readRule('remove-room-builder-methods'); diff --git a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-quotes-operation-params-processor.ts b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-quotes-operation-params-processor.ts index 19971b7..0136330 100644 --- a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-quotes-operation-params-processor.ts +++ b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/get-lodging-quotes-operation-params-processor.ts @@ -5,6 +5,7 @@ import {RuleFunction} from './shared.types'; export class GetLodgingQuotesOperationParamsProcessor extends Processor { rules: RuleFunction[]; + id: 'get-lodging-quotes-operation-params'; constructor() { super(); @@ -15,10 +16,6 @@ export class GetLodgingQuotesOperationParamsProcessor extends Processor { ].map(rule => rule.bind(this)); } - readRule(ruleName: string): NapiConfig { - return super.readRule('get-lodging-quotes-operation-params', ruleName); - } - removeRoomBuilderMethods(root: SgNode): Edit[] { const config = this.readRule('remove-room-builder-methods'); diff --git a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/non-cancellable-date-time-range-processor.ts b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/non-cancellable-date-time-range-processor.ts index ff850d3..b6fb009 100644 --- a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/non-cancellable-date-time-range-processor.ts +++ b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/non-cancellable-date-time-range-processor.ts @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types'; export class NonCancellableDateTimeRangeProcessor extends Processor { rules: RuleFunction[]; + id: 'non-cancellable-date-time-range'; constructor() { super(); @@ -13,10 +14,6 @@ export class NonCancellableDateTimeRangeProcessor extends Processor { ].map(rule => rule.bind(this)); } - readRule(ruleName: string): NapiConfig { - return super.readRule('non-cancellable-date-time-range', ruleName); - } - changeClassParamType(root: SgNode): Edit[] { const config = this.readRule('change-class-params-type'); diff --git a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/penalty-rule-processor.ts b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/penalty-rule-processor.ts index ef974ee..411dbee 100644 --- a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/penalty-rule-processor.ts +++ b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/penalty-rule-processor.ts @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types'; export class PenaltyRuleProcessor extends Processor { rules: RuleFunction[]; + id: 'penalty-rule'; constructor() { super(); @@ -13,10 +14,6 @@ export class PenaltyRuleProcessor extends Processor { ].map(rule => rule.bind(this)); } - readRule(ruleName: string): NapiConfig { - return super.readRule('penalty-rule', ruleName); - } - changeClassParamType(root: SgNode): Edit[] { const config = this.readRule('change-class-params-type'); diff --git a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/vendor-location-details-processor.ts b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/vendor-location-details-processor.ts index cbdaed4..be2d31f 100644 --- a/customizations/generator/openapi/src/main/resources/post-processor/src/processors/vendor-location-details-processor.ts +++ b/customizations/generator/openapi/src/main/resources/post-processor/src/processors/vendor-location-details-processor.ts @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types'; export class VendorLocationDetailsProcessor extends Processor { rules: RuleFunction[]; + id: 'vendor-location-details'; constructor() { super(); @@ -13,10 +14,6 @@ export class VendorLocationDetailsProcessor extends Processor { ].map(rule => rule.bind(this)); } - readRule(ruleName: string): NapiConfig { - return super.readRule('vendor-location-details', ruleName); - } - changeClassParamType(root: SgNode): Edit[] { const config = this.readRule('change-class-param-type');