(schema: unknown)
| 66 | } |
| 67 | |
| 68 | function getProperties(schema: unknown): Record<string, unknown> | undefined { |
| 69 | const props = asSchemaNode(schema)?.properties |
| 70 | return typeof props === 'object' && props !== null |
| 71 | ? (props as Record<string, unknown>) |
| 72 | : undefined |
| 73 | } |
| 74 | |
| 75 | function lookupField(schema: unknown, fieldName: string): unknown | undefined { |
| 76 | if (typeof schema !== 'object' || schema === null) return undefined |
no test coverage detected