feat(ui): log trace when skipping reserved input field type

This commit is contained in:
psychedelicious 2024-02-04 17:23:29 +11:00
parent e8bf9ea058
commit 6643b5cec4

View File

@ -12,6 +12,7 @@ import {
import { t } from 'i18next';
import { reduce } from 'lodash-es';
import type { OpenAPIV3_1 } from 'openapi-types';
import { serializeError } from 'serialize-error';
import { buildFieldInputTemplate } from './buildFieldInputTemplate';
import { buildFieldOutputTemplate } from './buildFieldOutputTemplate';
@ -103,7 +104,10 @@ export const parseSchema = (
const fieldType = parseFieldType(property);
if (isReservedFieldType(fieldType.name)) {
// Skip processing this reserved field
logger('nodes').trace(
{ node: type, field: propertyName, schema: parseify(property) },
'Skipped reserved input field'
);
return inputsAccumulator;
}