Closed alee-x closed 1 year ago
Thanks for pointing this out, looks like these codelists weren't cleaned before upload - they included unicode space separators. I've since updated our validation for codes and cleaned the existing offending codes.
The change is now live.
As title.
To recreate,
and in the response body there is a concept of
with a trailing space after the value of the
code
key.Would it be possible for the API to do output sanitisation on returned codes? We only found this accidentally while investigating some undesirable behaviour from an application that calls the Concept Library API.
The impact of this is that any programmatically formed SQL queries that rely on the returned codes from the API and don't strip out the trailing whitespace will always return incorrect results as the database won't be able to match "Xac33" with "Xac33 " as the whitespace makes the strings fundamentally different.