Skip to content

Empty arrays fail validation as null #630

@jsoriano

Description

@jsoriano

Reported in #616 (comment)

When trying to define a setting with an empty array, it is validated as null, what can fail validation.

This may be related to the conversions from yaml to json that we do to use jsonschema and so on.

Once this is solved, check if elastic-package is able to override array fields with empty values when importing them from ECS (see https://github.com/elastic/elastic-package/blob/9d8ce35eb3051b832057b37e75ad454e28069ee6/internal/fields/dependency_manager.go#L349)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions