elastic / package-spec

EPR package specifications
Other
18 stars 73 forks source link

Add string_number_fields for tests #791

Closed jsoriano closed 2 months ago

jsoriano commented 2 months ago

What does this PR do?

Add a new option similar to numeric_keyword_fields, that allows to indicate fields with numeric types that can accept string values if they can be parsed as numbers.

Find implementation in https://github.com/elastic/elastic-package/pull/2065.

Why is it important?

This is needed to introduce validation on fields that were not being tested, without needing to modify the existing functionality (https://github.com/elastic/elastic-package/pull/2054).

Checklist

Related issues

elasticmachine commented 2 months ago

:green_heart: Build Succeeded

cc @jsoriano