Browse Source

docs: updates README.md

e22m4u 3 weeks ago
parent
commit
2961d82803
1 changed files with 12 additions and 0 deletions
  1. 12 0
      README.md

+ 12 - 0
README.md

@@ -35,6 +35,18 @@ const {DataValidator} = require('@e22m4u/js-data-schema');
 
 ### Схема данных
 
+Пример схемы массива.
+
+```js
+{
+  type: DataType.ARRAY,
+  items: {
+    type: DataType.STRING,
+    required: true
+  }
+}
+```
+
 Свойства схемы (далее параметры):
 
 - `type` тип значения;