let InjectFactory can be custom definition for some special method #3234
zhuyou1234
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
in resteasy core, when I want to verify some special args.i define method like:
@post
public Response createXXX(@NotNull @PathParam("transportId") final String transportId,JsonObject payload)
@get
public Response getXXX(@NotNull @PathParam("transportId") final String transportId)
when I just want verify post request payload is a right jsonschema,and hope it can be a common validation.i cannot define directly a interceptor, so I add a Jsonschema annotation, and hope add a custom MethodInjectorImpl for this metod which is annotated by
Jsonschema,and only implement injectArguments to verify. but core code donot support this. so I add a pull request
@post
@jsonschema
public Response createXXX(@NotNull @PathParam("transportId") final String transportId,JsonObject payload)
@get
public Response getXXX(@NotNull @PathParam("transportId") final String transportId)
#3232
thanks
Beta Was this translation helpful? Give feedback.
All reactions