Open
Description
I would like to define a transformer
for a custom format
and this should be applied when a string has this format:
e.g.
export class LocalTime {
hour: number;
minute: number;
constructor(hour: number, minute: number) {
this.hour = hour;
this.minute = minute;
}
}
time:
type: string
format: time
then I would like to be able to parse this string into LocalTime
.
Maybe, I could create my own plugin for this?
If this doesn't fit here, I'll open a separate topic or issue.
Originally posted by @mrclrchtr in #1039 (comment)