Open jp-tosca opened 5 months ago
Related:
Also, the regex that is giving us the most trouble is the one for the "label" (filename) for the FileMetadata entity. That's the gnarly one JP mentioned above. Here it is in context:
I'll leave a comment on this issue from DataLad to at least let them know we hear them:
Overview of the Feature Request
While working on the OpenAPI document fix on #10328 we did some validations using https://quobix.com/vacuum/ where we noticed that we were using some regular expressions that are not compatible with ECMA-262
"^[^:<>;#/\"\\*\\|\\?\\\\]*$"
and raise an error.Our endpoints work with JSON and JavaScript frontends like React so it would make sense to review and abide by the standard that regex uses for ECMA-262, https://json-schema.org/understanding-json-schema/reference/regular_expressions
Also as mentioned by @pdurbin there are some issues raised by Datalad about name conflicts on some languages: https://docs.datalad.org/projects/dataverse/en/latest/settingup.html#dataverse-limitations
"Dataverse will not accept names like
Änderungen
orDéchiffrer
, due to theÄ
andé
in them."