Serialization refactoring to drop suboject logic

This commit is contained in:
barsdeveloper
2023-04-01 15:26:44 +02:00
parent 8c30118a13
commit 82bb9917fb
13 changed files with 316 additions and 292 deletions

View File

@@ -270,11 +270,14 @@ export default class Grammar {
return P.seq(
this.attributeName,
valueSeparator,
).chain(([attributeName, _1]) => this
.grammarFor(entityType.attributes[attributeName], undefined)
.map(attributeValue =>
values => values[Utility.encodeKeyName(attributeName)] = attributeValue
))
).chain(([attributeName, _1]) => {
attributeName = Utility.encodeKeyName(attributeName)
return this
.grammarFor(entityType.attributes[attributeName], undefined)
.map(attributeValue =>
values => values[attributeName] = attributeValue
)
})
}
/**