Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest API: accept unknown properties for forward compatibility #8

Closed
yvespp opened this issue Dec 3, 2016 · 1 comment
Closed

Rest API: accept unknown properties for forward compatibility #8

yvespp opened this issue Dec 3, 2016 · 1 comment

Comments

@yvespp
Copy link
Member

yvespp commented Dec 3, 2016

The Rest API should accept properties it doesn't know without throwing errors. This enables clients to send data that is not yet used by AMW.

In JBoss this can be done via Jackson Config
Per class:

@org.codehaus.jackson.annotate.JsonIgnoreProperties(ignoreUnknown = true)
public class FooBar {

or globaly:

objectMapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);

This however the Jackson config binds AMW to JBoss (more)...

@yvespp yvespp changed the title Rest API: accept unknown keys for forward compatibility Rest API: accept unknown properties for forward compatibility Dec 3, 2016
@RetGal
Copy link
Contributor

RetGal commented Dec 13, 2016

The annotations are ignored, EAP 6.4 uses jackson-1.9.9 but DeserializationConfig.Feature needs 1.9.13 or newer. We have to wait for EAP 7..

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

No branches or pull requests

2 participants