Feature/clear last update#122
Conversation
|
Hi @droslbl , |
|
Hi @wistefan Apologizes, I'll check version 4 and ammend the branch accordingly Best regards |
|
After checking the API, finally we are removing lastUpdate from the entities, only keeping the logic for the field to appear if its defined in the API |
0775c43 to
bf8b7f3
Compare
|
Hi @wistefan I finished the changes, with this it should be compliant to version 4, again sorry for my confusion earlier. |
| fieldsToInclude.addAll(Arrays.asList(optionalFieldsParameter.get().split(FIELD_PARAMETER_SEPERATOR))); | ||
| fieldsToInclude.addAll(MANDATORY_FIELDS); | ||
|
|
||
| if (objectNode.has("lastUpdate") && !objectNode.get("lastUpdate").isNull()) { |
There was a problem hiding this comment.
Does the spec mandate inclusion of lastUpdate, even when its not requested?
There was a problem hiding this comment.
Hi @wistefan I am not very sure either... But they were very insistent on this...
There was a problem hiding this comment.
If lastUpdate is not mandatory by the spec, it needs to be added at another layer(the layer that requires it).
There was a problem hiding this comment.
Hi @wistefan thanks for your time, I'll let this be known but probably will remain as a feature in the fork, closing the issue
Greetings @wistefan
As for the lastUpdate feature, we all agreed that TMForum should be compliant to the original TMForum specification as you said in the last pull request.
With that said, I was requested to add a few things that are required:
e.g. when querying with ?fields=none it always returns id and href but no lastUpdate. The condition checks if the field exist on the class and imposes it.
Sources:
Account - https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/TMF666_Account/5.0.0/user_guides/TMF666_Account_userguide.pdf
Party Role - https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/TMF669_Party_Role/5.0.0/user_guides/TMF669_Party_Role_userguide.pdf
If anything else is required please do tell me to solve it ASAP.
Best regards