CSCfi / iow-ui

Interoperability workbench user interface
Other
3 stars 0 forks source link

Dont send empty strings to API #558

Closed amiika closed 7 years ago

amiika commented 7 years ago

Change empty strings "" to null

amiika commented 7 years ago

}, { "@id": "urn:uuid:cf214fe6-c339-4434-9c02-ce1d12593e7d", "created": "2016-03-15T11:32:28.523+02:00", "comment": { "fi": "" }, "label": { "fi": "ok" }, "versionInfo": "Unstable", "datatype": "xsd:string", "index": 1, "minCount": 1, "predicate": "http://iow.csc.fi/ap/oiliu#organisaatio", "identifier": "", "pattern": "", "editorialNote": {}, "isResourceIdentifier": false, "inValues": [ " 1", " 10", " 101" ],

mortterna commented 7 years ago

Binding empty strings is angular default behavior. New directive that binds empty as null needs to be added to every input or hook to entity serialization logic.