-
Notifications
You must be signed in to change notification settings - Fork 47
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
A rest method with an accessor method name #40
Comments
It could be made configurable through Configuration. Current logic from |
What do You think about my suggestion? To be honest, probably the decision of including/excluding the method (isPublic, isAccessor, isIgnored) probably should have been delegated entirely to the Configuration, but as I'm not using JAX-RS myself, i didn't think about this use-case at the time when i implemented the |
Hmm, shouldn't the jax-rs behaviour be followed? For example, let's say I have an entity named Customer, and then I have an ApiCustomerVO. The API maps some data, resolves some dictionary items and also adds some additional fields fetched from other entities (list of contact phone numbers maybe). Now if the ApiCustomerVO has two methods:
The both these two methods will be output to the ApiCustomerVO in the d.ts file, and also the Customer class will be processed, though it's clearly not needed. |
Let's suppose I have a rest endpoint class like:
This currently causes:
This is because java2typescript.jackson.module.visitors.TSJsonObjectFormatVisitor#isAccessorMethod identifies this as an accessor method.
What would be the best way to solve this? Maybe the isAccessorMethod could look for jax-rs annotations?
The text was updated successfully, but these errors were encountered: