in libs/logic-apps-shared/src/parsers/lib/common/schemaprocessor.ts [451:474]
private _getName(): string | undefined {
if (!this.options.prefix && !this.options.isInputSchema) {
const { parentProperty } = this.options;
if (parentProperty && parentProperty.isArray) {
return parentProperty.arrayName && parentProperty.arrayName !== SwaggerConstants.OutputKeys.Body
? `${parentProperty.arrayName}-${SwaggerConstants.OutputKeys.Item}`
: SwaggerConstants.OutputKeys.Item;
}
return this.options.outputKey || SwaggerConstants.OutputKeys.Body;
}
// Note: Prefix is not well defined for items in array of primitive types. Hence explicitly setting the name.
if (
this.options.isInputSchema &&
this.options.parentProperty &&
this.options.parentProperty.isArray &&
this.options.parentProperty.arrayName &&
this.options.currentKey === ParameterKeyUtility.WildIndexSegment
) {
return `${this.options.parentProperty.arrayName}.${ParameterKeyUtility.WildIndexSegment}`;
}
return this.options.prefix || this.options.currentKey;
}