Skip to content

[validation] Check if @shortcut and @aliases are supported correctly... together #4599

Open
@l-trotta

Description

@l-trotta

Here's SpanTermQuery, where value is both a shortcut and has an alias (yes it's correct):

/**
 * @shortcut_property value
 * @ext_doc_id query-dsl-span-term-query
 */
export class SpanTermQuery extends QueryBase {
  /** @aliases term */
  value: FieldValue
}

All flight recorder tests fail with this one, saying:

Type '{ _name: string; boost: number; value: string; }' is not assignable to type 'FieldValue | QueryDslSpanTermQuery | undefined'.

and

Property 'term' is missing in type '{ _name: string; boost: number; value: string; }' but required in type 'QueryDslSpanTermQuery'.

So it seems like the combination of shortcut and aliases breaks both

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