diff --git a/src/app/params-form/params-form.component.html b/src/app/params-form/params-form.component.html index 201a02c..e90b025 100644 --- a/src/app/params-form/params-form.component.html +++ b/src/app/params-form/params-form.component.html @@ -13,7 +13,7 @@
@for (key of paramKeys(); track key) {
- @if (showParam(key) && getParamInfo(key); as paramInfo) { + @if (getParamInfo(key); as paramInfo) { @switch (paramInfo.type) { @case ('boolean') { diff --git a/src/app/params-form/params-form.component.ts b/src/app/params-form/params-form.component.ts index a13bf9f..efc47b5 100644 --- a/src/app/params-form/params-form.component.ts +++ b/src/app/params-form/params-form.component.ts @@ -186,17 +186,7 @@ export class ParamsFormComponent implements OnInit { getParamInfo(key: string): ParamInfo | undefined { return this.paramsFormInfo?.paramsInfo[key]; } - - showParam(key: string): boolean { - const paramInfo = this.paramsFormInfo?.paramsInfo[key]; - if (paramInfo) { - if (paramInfo?.schema?.$ref === '#/definitions/ActionList') { - return false; - } - } - return true; - } - + getParamValue(key: string) { if (this.paramsSchema) { const params = this.schemaService.cleanParams( diff --git a/src/services/schema.service.ts b/src/services/schema.service.ts index fda4474..df9c0d8 100644 --- a/src/services/schema.service.ts +++ b/src/services/schema.service.ts @@ -489,12 +489,6 @@ export class SchemaService { } else { console.error(`schema-service: unhandled array schema type: ${schema.items?.type}`); } - } else if (schema['$ref'] === '#/definitions/ActionList') { - try { - return JSON.parse(`[${paramValue}]`); - } catch (error) { - console.error('sub action list is not JSON'); - } } else { // NOTE(jwetzell): default to comma-separated strings return paramValue.split(',').map((part: string) => part.trim());