(schema: Schema.Schema<A, I>, message: string)
| 97 | } |
| 98 | |
| 99 | const expectError = <A, I>(schema: Schema.Schema<A, I>, message: string) => { |
| 100 | throws(() => JSONSchema.make(schema), new Error(message)) |
| 101 | } |
| 102 | |
| 103 | // Using this instead of Schema.JsonNumber to avoid cluttering the output with unnecessary description and title |
| 104 | const JsonNumber = Schema.Number.pipe(Schema.filter((n) => Number.isFinite(n), { jsonSchema: {} })) |
no test coverage detected