override model ,using swagger-maven-plugin

86 views
Skip to first unread message

Chiang Jeremy

unread,
Apr 8, 2014, 5:09:52 PM4/8/14
to swagger-sw...@googlegroups.com
Swagger-maven-plugin will generate the API resource json file during the build time.

The following is the maven plugin
      
 <build>
        <plugins>
            ...
            <plugin>
                <groupId>com.github.kongchen</groupId>
                <artifactId>swagger-maven-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <apiSources>
                       ...
                    </apiSources>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            ...
        </plugins>
    </build>
The original solution for overriding model https://github.com/wordnik/swagger-core/wiki/overriding-models seems not work in this case
any idea for this case?

Ron

unread,
Apr 9, 2014, 4:45:43 AM4/9/14
to swagger-sw...@googlegroups.com
I encourage you to open an issue directly on the project - https://github.com/kongchen/swagger-maven-plugin


--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages