diff options
author | Jon Bratseth <bratseth@oath.com> | 2019-01-11 14:54:17 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-01-31 13:02:29 +0100 |
commit | 23835c0ef5dfe290b3d08aa69a820bf268f5f7a0 (patch) | |
tree | 297a1b081b3f467e0fcd7c79d33a89ae61fe0d2c /config-model/src/test/examples | |
parent | e6dd1ced58cf74b76bbadc92fb2ee4f0c3c4a92d (diff) |
Disallow dash in search definition, document, field and function names
Diffstat (limited to 'config-model/src/test/examples')
-rw-r--r-- | config-model/src/test/examples/invalid-name.sd | 12 | ||||
-rw-r--r-- | config-model/src/test/examples/simple-with-weird-name.sd | 13 |
2 files changed, 12 insertions, 13 deletions
diff --git a/config-model/src/test/examples/invalid-name.sd b/config-model/src/test/examples/invalid-name.sd new file mode 100644 index 00000000000..f26fcc723f4 --- /dev/null +++ b/config-model/src/test/examples/invalid-name.sd @@ -0,0 +1,12 @@ +# Dashes in names are not allowed +search invalid-name { + + document invalid-name { + + field title type string { + + } + + } + +}
\ No newline at end of file diff --git a/config-model/src/test/examples/simple-with-weird-name.sd b/config-model/src/test/examples/simple-with-weird-name.sd deleted file mode 100644 index 109f4f7bba7..00000000000 --- a/config-model/src/test/examples/simple-with-weird-name.sd +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -# A minimal doc with name which is incompatible with YQL+ -search simple-with-weird-name { - - document simple-with-weird-name { - - field title type string { - indexing: summary | index - } - - } - -} |