Format for Time element

Created on 6 March 2024, 4 months ago

Problem/Motivation

Currently there is no format for Time element, it is added to the schema as a plain string.

Steps to reproduce

Add a webform_time element to any form and check the JSON Schema output.

Proposed resolution

Add $properties['format'] = 'time'; to itemsToSchema().

API changes

Time elements will get a format.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇮Finland mErilainen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024