Skip to content

[FeatureRequest] transformer for a custom format #1262

Open
@mrclrchtr

Description

@mrclrchtr

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    RSVP 👍👎Explicit request for reactions to gauge interest in resolving this issuefeature 🚀New feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions