Skip to content

Commit

Permalink
chore: fix json schema test (#3670)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti authored Sep 24, 2024
1 parent 734eae6 commit c57ee0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/schema/test/JSONSchema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1523,9 +1523,10 @@ schema (Suspend): <suspended schema>`

it("should support make(S.typeSchema(Class))", () => {
class A extends Schema.Class<A>("A")({ a: Schema.String }) {}
expectJSONSchema(A, {
expectJSONSchema(Schema.typeSchema(A), {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "A (Type side)",
"required": [
"a"
],
Expand Down

0 comments on commit c57ee0c

Please sign in to comment.