-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I'm missing some types and would like to get some feedback if they might be implemented in the spec.
- bool: Simple boolean values. Either true or false. Together with required, the client would either render a normal checkbox, or a tri-state-checkbox.
- datetime-offset: An ISO 8601 encoded string. This would be good to support users who use an API from different time zones. The default JavaScript Date-constructor automatically takes care of converting it into the browsers local timezone.
- duration: An ISO 8601 encoded string. Must start with a 'P'. This is also supported in the upcoming ECMAScript Temporal spec, see https://tc39.es/proposal-temporal/docs/index.html
- image: A valid image URL. Can also be a data URL, like
data:image/png;base64,.... A client interface would render the image and a text input and / or a file upload. - file: A valid URL. Can also be a data URL. A client interface would render a download-button and a text input and / or a file upload. I've read support HTML5 types for inputs #36 and think, this is a valid solution.
For further aid, I would also like to propose a new field on properties:
mimeTypes which would be OPTIONAL and may contain an array of MIME-types. This would help clients to know which types for image and file are accepted.
reda-alaoui
Metadata
Metadata
Assignees
Labels
No labels