Skip to content

Field validator should check for ECS fields marked as arrays #615

Closed
@andrewkroh

Description

@andrewkroh

It would be helpful if elastic-package could trigger errors on ECS event fields that are not arrays. For example, host.ip is specified to be an array so events that contain the field should be an array of ips.

Screen Shot 2021-12-08 at 8 49 04 AM

The generated YAML specification indicates the array type. https://github.com/elastic/ecs/blob/9b463c9116eb594a3be10db01c3236fd6b44b996/generated/ecs/ecs_flat.yml#L4536-L4543

host.ip:
  dashed_name: host-ip
  description: Host ip addresses.
  flat_name: host.ip
  level: core
  name: ip
  normalize:
  - array
  short: Host ip addresses.
  type: ip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:EcosystemLabel for the Packages Ecosystem teamenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions