buildingSMART / bSDD

The buildingSMART Data Dictionary repository, where we publish the documentation, examples and more. We don't publish here the data, the source code of the bSDD service or the front end of the website.
https://www.buildingsmart.org/users/services/buildingsmart-data-dictionary/
MIT License
129 stars 36 forks source link

Does the bSDD API replace two empty characery with one? #11

Closed klacol closed 10 months ago

klacol commented 5 years ago

I use this ressource of the bSDD REST-API to insert a translated definition of the PSets:

POST /IfdConcept/{guid}/definition

I am wondering, if the API replaces two empty characters (spaces) with only one.

I send this string:

Eine Aktionsanforderung ist eine Anforderung an eine Aktion, um einen Bedarf zu decken.  HISTORY: IFC4: Removed RequestSourceType, RequestDescription, Status

The API returns this string:

Eine Aktionsanforderung ist eine Anforderung an eine Aktion, um einen Bedarf zu decken. HISTORY: IFC4: Removed RequestSourceType, RequestDescription, Status

Between "...decken." and "HISTORY..." are two spaces in the request and only one in the response. In the web page of the concept, I have also only one space.

This leads for me to the problem, that the ressource ist not stateless and I cannot identify changed values.

I am wondering, if I have to replace double spaces in the source of the translation with single spaces.