diff --git a/test/packages/good/data_stream/foo/fields/some_fields.yml b/test/packages/good/data_stream/foo/fields/some_fields.yml index 14b18070..bfdb029c 100644 --- a/test/packages/good/data_stream/foo/fields/some_fields.yml +++ b/test/packages/good/data_stream/foo/fields/some_fields.yml @@ -47,3 +47,5 @@ include_in_root: true - name: c.d type: keyword +- name: name-with-dash + type: keyword diff --git a/versions/1/integration/data_stream/fields/fields.spec.yml b/versions/1/integration/data_stream/fields/fields.spec.yml index dcf2a736..f915b8f9 100644 --- a/versions/1/integration/data_stream/fields/fields.spec.yml +++ b/versions/1/integration/data_stream/fields/fields.spec.yml @@ -13,7 +13,7 @@ spec: Name of field. Names containing dots are automatically split into sub-fields. type: string - pattern: '^[*_@A-Za-z0-9]+(\.[*_@A-Za-z0-9]+)*$' + pattern: '^[*-_@A-Za-z0-9]+(\.[*-_@A-Za-z0-9]+)*$' type: description: Datatype of field type: string