Allowing "cty" header to include "application/" prefix rather than compacting #1043
|
Hi there, I've hit an issue while trying to integrate with a third party in Open Banking, where the third party is (incorrectly) only allowing "application/json" for the cty header, and not json. I know both the OB specs and RFC for this state that the compacted form should be preferred, but unfortunately this provider hasn't implemented it this way. I'm working on trying to get them to fix this, but its out of my hands. Is there a way I can turn off the compacting for this (compactIfPossible in CompactMediaTypeIdConverter)? If this feature doesn't exist and there's no easy work arounds, would it be worth creating an issue for this? Any thoughts much appreciated thanks. |
Replies: 1 comment 1 reply
|
Hi @steve-sasc! You should be able to do this with a custom Serializer; if you are using Jackson, you could customize the ObjectMapper. Let us know if this works for you! |
Hi @steve-sasc!
You should be able to do this with a custom Serializer; if you are using Jackson, you could customize the ObjectMapper.
Look for the
ctykey and modify its value when serializing.Let us know if this works for you!