You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -752,7 +752,7 @@ test("Transformed schema schema with default fails when destruction failed", t =
752
752
753
753
t->Assert.deepEqual(
754
754
JSONSchema.make(schema),
755
-
Error(`[ReScript JSON Schema] Failed converting at ["field"]. Reason: Couldn't destruct default value. Error: Failed serializing to JSON at root. Reason: The S.transform serializer is missing`),
755
+
Error(`[ReScript JSON Schema] Failed converting at ["field"]. Reason: Couldn't destruct default value. Error: Failed reverse converting to JSON at root. Reason: The S.transform serializer is missing`),
756
756
)
757
757
})
758
758
@@ -923,28 +923,28 @@ test("Fails to create schema for schemas with optional items", t => {
923
923
t->Assert.deepEqual(
924
924
JSONSchema.make(S.dict(S.option(S.string))),
925
925
Error(
926
-
"[ReScript JSON Schema] Failed converting at root. Reason: Optional schema is not supported as Dict(Option(String)) item",
926
+
"[ReScript JSON Schema] Failed converting at root. Reason: Optional schema is not supported as dict<string | undefined> item",
927
927
),
928
928
)
929
929
t->Assert.deepEqual(
930
930
JSONSchema.make(S.array(S.option(S.string))),
931
931
Error(
932
-
"[ReScript JSON Schema] Failed converting at root. Reason: Optional schema is not supported as Array(Option(String)) item",
932
+
"[ReScript JSON Schema] Failed converting at root. Reason: Optional schema is not supported as array<string | undefined> item",
0 commit comments