Skip to content

Commit 75671d1

Browse files
authored
Version 1.0.62 (#1482)
* Add Missing Uri String Format * ChangeLog * Version
1 parent 05a360d commit 75671d1

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

changelog/1.0.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
---
44

55
### Version Updates
6+
- [Revision 1.0.62](https://github.com/sinclairzx81/typebox/pull/1482)
7+
- Add Missing Uri Option for String Formats
68
- [Revision 1.0.61](https://github.com/sinclairzx81/typebox/pull/1475)
79
- [1463](https://github.com/sinclairzx81/typebox/pull/1463) Fix: Don't skip required undefined properties on object
810
- [Revision 1.0.60](https://github.com/sinclairzx81/typebox/pull/1474)

src/compile/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class Validator<Context extends TProperties = TProperties, Type extends T
146146
// Parse | Decode | Encode
147147
// ----------------------------------------------------------------
148148
/** Parses a value */
149-
public Parse(value: unknown): Decode {
149+
public Parse(value: unknown): Encode {
150150
const result = this.Check(value) ? value : Parser(this.context, this.type, value)
151151
return result as never
152152
}

src/type/types/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export type TFormat =
236236
| 'time'
237237
| 'uri-reference'
238238
| 'uri-template'
239+
| 'uri'
239240
| 'url'
240241
| 'uuid'
241242
| ({} & string)

tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Range } from './task/range/index.ts'
88
import { Metrics } from './task/metrics/index.ts'
99
import { Task } from 'tasksmith'
1010

11-
const Version = '1.0.61'
11+
const Version = '1.0.62'
1212

1313
// ------------------------------------------------------------------
1414
// Build

0 commit comments

Comments
 (0)