IDE shows property as any but it has a type defined
14:42 20 Nov 2025

Why is discriminator any here? It's supposed to be, and defined, as DiscriminatorObject.

import type { OpenAPIV3_1 } from '@scalar/openapi-types'

const schemas: Record = {}
schemas.foo?.discriminator // <-- discriminator is any, should be DiscriminatorObject

example

What's going on? Is there a way to make the type work?

typescript