[ 
https://issues.apache.org/jira/browse/GERONIMO-6661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724162#comment-16724162
 ] 

Dennis Kieselhorst commented on GERONIMO-6661:
----------------------------------------------

Thanks. I would probably use a third party util for the annotation stuff but I 
understand that you don't want to introduce a dependency to commons-lang or 
something else. My testcase is working now.

I will prepare a PR to extract some parts out of OpenAPIMojo for reuse in CXF 
as soon as I find time for it.

Please note that the testcase result OpenAPIMojoTest_run_1.json is currently 
not a valid definition. Looks like we need more defaults here:
{noformat}
Schema error: should have required property 'info'
Semantic error at paths./sayHello/{a} Declared path parameter "a" needs to be 
defined as a path parameter at either the path or operation level
Schema error at paths['/sayHello/{a}'].get.parameters[0] should have required 
property 'in'
Schema error at paths['/sayHello/{a}'].get.parameters[0].style should be equal 
to one of the allowed values allowedValues: form, spaceDelimited, 
pipeDelimited, deepObject
Schema error at paths['/sayHello/{a}'].get.responses['200'] should have 
required property 'description'
Schema error at paths['/sayHello/{a}'].get.responses['200'] should have 
required property '$ref'
Schema error at paths['/sayHello/{a}'].get.responses['200'] should match 
exactly one schema in oneOf
{noformat}
 

> OpenAPIMojo doesn't work with @Path annotation on interface
> -----------------------------------------------------------
>
>                 Key: GERONIMO-6661
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6661
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Dennis Kieselhorst
>            Assignee: Romain Manni-Bucau
>            Priority: Minor
>             Fix For: OpenAPI_1.0.2
>
>
> Tried this class 
> https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/spring_boot/src/main/java/sample/rs/service/hello1/HelloServiceImpl1.java
>  with geronimo-openapi-impl 1.0.1. The @Path annotation from the interface is 
> not taken into account and therefore results in an empty spec.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to