Skip to content

Commit

Permalink
Version 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zaggino committed Mar 4, 2015
1 parent 67457e8 commit 7c5ce23
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/ZSchema-browser-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ZSchema-browser-min.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/ZSchema-browser-test.js
Expand Up @@ -47081,7 +47081,10 @@ var SchemaValidators = {

if (this.options.noEmptyStrings === true) {
if (schema.type === "string" || isArray && schema.type.indexOf("string") !== -1) {
if (schema.minLength === undefined && schema.enum === undefined) {
if (schema.minLength === undefined &&
schema.enum === undefined &&
schema.format === undefined) {

schema.minLength = 1;
}
}
Expand Down
5 changes: 4 additions & 1 deletion dist/ZSchema-browser.js
Expand Up @@ -1750,7 +1750,10 @@ var SchemaValidators = {

if (this.options.noEmptyStrings === true) {
if (schema.type === "string" || isArray && schema.type.indexOf("string") !== -1) {
if (schema.minLength === undefined && schema.enum === undefined) {
if (schema.minLength === undefined &&
schema.enum === undefined &&
schema.format === undefined) {

schema.minLength = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "z-schema",
"version": "3.5.1",
"version": "3.5.2",
"description": "JSON schema validator",
"homepage": "https://github.com/zaggino/z-schema",
"authors": [
Expand Down

0 comments on commit 7c5ce23

Please sign in to comment.