Skip to content

[validation] Check if "@non_exhaustive" is supported correctly #3731

Open
@l-trotta

Description

@l-trotta

Running make validate api=simulate.ingest branch=main returns the following error:

Type '{ "non-existent-processor": {}; }' is not assignable to type 'IngestProcessorContainer'.
  Object literal may only specify known properties, and '"non-existent-processor"' does not exist in type 'IngestProcessorContainer'.

The relevant failing test is actually valid, because ProcessorContainer is tagged with:

/**
 * @variants container
 * @non_exhaustive
 */

so it should allow an unknown value. Does validation consider @non_exhaustive?.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions