sdaschner / jaxrs-analyzer

Creates REST documentation for JAX-RS projects
Apache License 2.0
319 stars 101 forks source link

swaggerSchemes https is not considered #114

Closed ppasler closed 7 years ago

ppasler commented 7 years ago

Hi there,

I am facing a problem changing the swaggerSchemes to https. This is my configuration (yes I am currently using 0.9 due to #113):

<plugin>
    <groupId>com.sebastian-daschner</groupId>
    <artifactId>jaxrs-analyzer-maven-plugin</artifactId>
    <version>0.9</version>
    <executions>
        <execution>
            <goals>
                <goal>analyze-jaxrs</goal>
            </goals>
            <configuration>
                <backend>swagger</backend>
                <deployedDomain>example/rest/extranet/latest</deployedDomain>
                <swaggerSchemes>https</swaggerSchemes>
            </configuration>
        </execution>
    </executions>
</plugin>

The plugin produces the following json

...
  "basePath": "/",
  "schemes": [
    "http"
  ],
  "paths": {
   ....

Running the same configuration with versions > v9 even produces an error.

[ERROR] Failed to execute goal com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.14:analyze-jaxrs (default) on project core: Unable to parse configuration of mojo com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.14:analyze-jaxrs for parameter swaggerSchemes: Cannot assign configuration entry 'swaggerSchemes' with value 'https' of type java.lang.String to property of type java.lang.String[] -> [Help 1]

My workaround is to change the protocol manually after creation (which is annoying) Am I doing something wrong? Thanks for any help!

ppasler commented 7 years ago

Sorry wrong project, moved to jaxrs-analyzer-maven-plugin