diff --git a/bin/create-json-schema.js b/bin/create-json-schema.js
index 1dde387f1d233b7bc2a1147ca1c74655ced5ffb8..827785bd91fe3566b6cbaebf487692a3d3667443 100644
--- a/bin/create-json-schema.js
+++ b/bin/create-json-schema.js
@@ -34,6 +34,12 @@ function createSingleConfig(option) {
         temp.items.enum = option.allowedValues;
       }
     }
+    if (option.subType == 'string' && option.allowString === true) {
+      const items = temp.items;
+      delete temp.items;
+      delete temp.type;
+      temp.oneOf = [{ type: 'array', items }, { ...items }];
+    }
   } else {
     if (option.format) {
       temp.format = option.format;