@remoteoss/json-schema-form 0.1.1-dev.20230619163824 → 0.3.0-beta.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ #### 0.3.0-beta.0 (2023-06-21)
2
+
3
+ ##### Fixes
4
+
5
+ - Fix validation for text schema to only validate strings ([#12](https://github.com/remoteoss/json-schema-form/pull/12)) ([00017c0](https://github.com/remoteoss/json-schema-form/commit/00017c056d8a3583d56d9fefc4d3c7e0f4c1dd99))
6
+
7
+ ##### Chores
8
+
9
+ - Update yup version to v.0.30.0 ([#12](https://github.com/remoteoss/json-schema-form/pull/12)) ([00017c0](https://github.com/remoteoss/json-schema-form/commit/00017c056d8a3583d56d9fefc4d3c7e0f4c1dd99))
10
+
11
+ #### 0.2.0-beta.0 (2023-06-20)
12
+
13
+ ##### New Features
14
+
15
+ - Add typescript declarations to the library ([2404188c](https://github.com/remoteoss/json-schema-form/commit/2404188cba52a5a665f257430a65a0ebb938dd44))
16
+
17
+ ##### Fixes
18
+
19
+ - Support maximum 0 ([#10](https://github.com/remoteoss/json-schema-form/pull/10)) ([1e9d6cf9](https://github.com/remoteoss/json-schema-form/commit/1e9d6cf96436cf16018e045b351567c643e10dac))
20
+
21
+ ##### Chores
22
+
23
+ - Add json-schema-form meta schema ([#6](https://github.com/remoteoss/json-schema-form/pull/6)) ([414a5fe2](https://github.com/remoteoss/json-schema-form/commit/414a5fe2cf2b015a8761f554f03bbb507fae1784))
24
+
1
25
  #### 0.1.0-beta.0 (2023-05-18)
2
26
 
3
27
  ##### New Features
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  Copyright (c) 2023 Remote Technology, Inc.
4
- NPM Package: @remoteoss/json-schema-form@0.1.1-dev.20230619163824
5
- Generated: Mon, 19 Jun 2023 16:38:39 GMT
4
+ NPM Package: @remoteoss/json-schema-form@0.3.0-beta.0
5
+ Generated: Wed, 21 Jun 2023 11:17:55 GMT
6
6
 
7
7
  MIT License
8
8
 
@@ -375,7 +375,7 @@ var validateOnlyStrings = (0, import_yup.string)().trim().nullable().test(
375
375
  "is-string",
376
376
  "${path} must be a `string` type, but the final value was: `${value}`.",
377
377
  (value, context) => {
378
- if (context.originalValue) {
378
+ if (context.originalValue !== null && context.originalValue !== void 0) {
379
379
  return typeof context.originalValue === "string";
380
380
  }
381
381
  return true;
@@ -545,7 +545,7 @@ function buildYupSchema(field, config) {
545
545
  if (typeof propertyFields.minLength !== "undefined") {
546
546
  validators.push(withMinLength);
547
547
  }
548
- if (propertyFields.maximum) {
548
+ if (propertyFields.maximum !== void 0) {
549
549
  validators.push(withMax);
550
550
  }
551
551
  if (propertyFields.maxLength) {
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  Copyright (c) 2023 Remote Technology, Inc.
4
- NPM Package: @remoteoss/json-schema-form@0.1.1-dev.20230619163824
5
- Generated: Mon, 19 Jun 2023 16:38:39 GMT
4
+ NPM Package: @remoteoss/json-schema-form@0.3.0-beta.0
5
+ Generated: Wed, 21 Jun 2023 11:17:55 GMT
6
6
 
7
7
  MIT License
8
8
 
@@ -339,7 +339,7 @@ var validateOnlyStrings = string().trim().nullable().test(
339
339
  "is-string",
340
340
  "${path} must be a `string` type, but the final value was: `${value}`.",
341
341
  (value, context) => {
342
- if (context.originalValue) {
342
+ if (context.originalValue !== null && context.originalValue !== void 0) {
343
343
  return typeof context.originalValue === "string";
344
344
  }
345
345
  return true;
@@ -509,7 +509,7 @@ function buildYupSchema(field, config) {
509
509
  if (typeof propertyFields.minLength !== "undefined") {
510
510
  validators.push(withMinLength);
511
511
  }
512
- if (propertyFields.maximum) {
512
+ if (propertyFields.maximum !== void 0) {
513
513
  validators.push(withMax);
514
514
  }
515
515
  if (propertyFields.maxLength) {