Skip to content

New response_format and request_fallback parameters#128

Merged
campru merged 19 commits intomasterfrom
feature/response-format-option
May 11, 2020
Merged

New response_format and request_fallback parameters#128
campru merged 19 commits intomasterfrom
feature/response-format-option

Conversation

@andreskrey
Copy link
Copy Markdown
Contributor

@andreskrey andreskrey commented Apr 30, 2020

Two new parameters:

  • response_format parameter that allows to pass custom deserializers to jms.
  • request_fallback that allows to fallback into the original response when framework fails to deserialize it (deafults to true)

…deserializers to jms.

Rethrow deserialization errors by default
…ities:

1. Overridden value on the flow definition
2. Producer default encoding
3. JSON

+ trigger deprecation error on fallback when no response_format is defined
…ll default to true (fallback enabeld) and can be disabled to force an exception by setting it to false
@andreskrey andreskrey changed the title New response_format parameter New response_format and request_fallback parameters May 1, 2020
Comment thread Components/WebService/Rest/RestConfigurableProducer.php
Comment thread Components/WebService/Rest/RestConfigurableProtocol.php Outdated
Comment thread Components/WebService/Rest/RestConfigurableProtocol.php
Comment thread Components/WebService/Rest/RestConfigurableProtocol.php Outdated
Comment thread Components/WebService/Rest/RestConfigurableProducer.php Outdated
Comment thread Components/WebService/Rest/RestConfigurableProducer.php Outdated
Copy link
Copy Markdown
Contributor

@campru campru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the changes and there are small things that should be addressed. It would also be interesting to add a architecture decision record explaining why we decided this

@andreskrey
Copy link
Copy Markdown
Contributor Author

All comments addressed

Comment thread Components/WebService/Rest/RestConfigurableProtocol.php
@campru
Copy link
Copy Markdown
Contributor

campru commented May 8, 2020

The changes have been reviewed and are fine. Could you add here a architecture decision record for this?

@andreskrey
Copy link
Copy Markdown
Contributor Author

Done

Comment thread Docs/architecture/decisions/002-deprecate-response-fallback.md Outdated
Comment thread Docs/architecture/decisions/002-deprecate-response-fallback.md Outdated
Comment thread Docs/architecture/decisions/002-deprecate-response-fallback.md Outdated
Comment thread Docs/architecture/decisions/002-deprecate-response-fallback.md Outdated
Comment thread Docs/architecture/decisions/002-deprecate-response-fallback.md Outdated
Comment thread Docs/architecture/decisions/002-deprecate-response-fallback.md Outdated
Comment thread Docs/architecture/decisions/002-deprecate-response-fallback.md Outdated
andreskrey and others added 7 commits May 11, 2020 09:37
Co-authored-by: David Camprubí <david.camprubi@smartbox.com>
Co-authored-by: David Camprubí <david.camprubi@smartbox.com>
Co-authored-by: David Camprubí <david.camprubi@smartbox.com>
Co-authored-by: David Camprubí <david.camprubi@smartbox.com>
Co-authored-by: David Camprubí <david.camprubi@smartbox.com>
Co-authored-by: David Camprubí <david.camprubi@smartbox.com>
Co-authored-by: David Camprubí <david.camprubi@smartbox.com>
Copy link
Copy Markdown
Contributor

@campru campru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes have been reviewed and can be merged

@campru campru merged commit 560b4ec into master May 11, 2020
@andreskrey andreskrey deleted the feature/response-format-option branch May 11, 2020 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants