nox-validation 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/validate.js +3 -0
  2. package/package.json +1 -1
package/lib/validate.js CHANGED
@@ -974,6 +974,9 @@ const validate = (data) => {
974
974
  if (!data?.language) {
975
975
  data.language = constants.LANGUAGES.en;
976
976
  }
977
+ if (!data?.language_codes) {
978
+ data.language_codes = [];
979
+ }
977
980
  if (data.onlyFormFields === undefined) {
978
981
  data.onlyFormFields = false;
979
982
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-validation",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "validate dynamic schema",
5
5
  "main": "index.js",
6
6
  "scripts": {