Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding 'format' property to StringProperty? #352

Open
lzehl opened this issue Sep 13, 2022 · 5 comments
Open

adding 'format' property to StringProperty? #352

lzehl opened this issue Sep 13, 2022 · 5 comments
Labels
question further information is requested request any request or update for schemas

Comments

@lzehl
Copy link
Member

lzehl commented Sep 13, 2022

Idea: a StringProperty is a user-defined key-value pair that assumes a string. It would be great if a user could define in addition the format of the string value he/she provided.

Example:

  • name: applicationDate
  • value: 2022-09-13T20:20:39+00:00
  • format: datetime

@apdavison @Peyman-N @UlrikeS91 what do you think?

@UlrikeS91
Copy link
Collaborator

I support this!

@lzehl
Copy link
Member Author

lzehl commented Nov 8, 2022

@UlrikeS91 @apdavison @Peyman-N if we implement this should 'format' be optional or required?

@UlrikeS91
Copy link
Collaborator

If it was required, we would need a "format" that represents the absence of it when there is just a string value used that doesn't follow a specific format.
So, I would lean towards optional to avoid that.

@apdavison
Copy link
Member

optional

@lzehl
Copy link
Member Author

lzehl commented Dec 12, 2022

@UlrikeS91 and @apdavison thanks. optional it is. Another question:
a) Do we define a StringFormat schema that format links to? That schema should have the properties label and regex.
b) Should we define this as controlledTerm and predefine there the most popular string formats?
c) Leave this as string (which might end up in a mess).

@UlrikeS91 UlrikeS91 added request any request or update for schemas question further information is requested labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question further information is requested request any request or update for schemas
Projects
None yet
Development

No branches or pull requests

3 participants