Skip to content

Commit

Permalink
Allow dash in field names
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Apr 29, 2022
1 parent 2baa12c commit 99e3c40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/packages/good/data_stream/foo/fields/some_fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@
include_in_root: true
- name: c.d
type: keyword
- name: name-with-dash
type: keyword
2 changes: 1 addition & 1 deletion versions/1/integration/data_stream/fields/fields.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99e3c40

Please sign in to comment.