what is the story of "format"? #437
-
I try to understand why format was splitted in Also, that documentation says:
Later in the document says that So what is this, a standard or a market trade? Also, that documentation says:
I don't understand what importance still has |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
In the beginning (spec <= 2019-09), it was up to implementations to decide how or if to validate In 2019-09, But also, changing In 2020-12, So, you can see at this point, users have all the options. They can get strict validation, no validation, or the legacy 🤷♂️ validation. It's better than it was and the default behavior for both vocabularies does produce consistent results. The legacy behavior is still available, but you have to choose to use it. Now, my speculation about how I think the partial/optional validation situation happened in the first place. JSON doesn't have types like Date, so in order to express a date in JSON, you need to encode it as a string. I think
I think that concept quickly evolved into |
Beta Was this translation helpful? Give feedback.
format
was defined long before anyone involved in the project was around, so we don't know the reasons it was defined the way it was. (I'll speculate later on what I think happened.) Since then, others have tried to improve the situation, but honestly, right now we have a bit of a weird frankenstien where almost anything is allowed depending on how you configure things.In the beginning (spec <= 2019-09), it was up to implementations to decide how or if to validate
format
. It's not clear why it was defined that way, but I'll give my guess a little later. As you point out, this results in different implementations producing different results. The current spec team (especially the previous …