Format for Time element

Created on 6 March 2024, 8 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.71.5 2024