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

Add Exception handling for unknown elements and unknown types #91

Open
Zarquan opened this issue Nov 17, 2024 · 1 comment
Open

Add Exception handling for unknown elements and unknown types #91

Zarquan opened this issue Nov 17, 2024 · 1 comment

Comments

@Zarquan
Copy link
Member

Zarquan commented Nov 17, 2024

We should catch unknown types and return a NO response with an appropriate message rather than allowing the Exception to bubble up into the response.

@Zarquan
Copy link
Member Author

Zarquan commented Nov 17, 2024

2024-11-17 11:25:46 WARN org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Could not resolve type id 'urn:enum-value-update' as a subtype of `net.ivoa.calycopis.openapi.model.IvoaAbstractUpdate`: known type ids = [IvoaAbstractUpdate, uri:enum-value-update, uri:integer-delta-update, uri:integer-value-update, uri:string-value-update] (for POJO property 'update')]

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

1 participant