Skip to content
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

[MAVEN PLUGIN] NullPointerException when not specifying configOptions #7612

Closed
matthewmcgarvey opened this issue Feb 7, 2018 · 1 comment

Comments

@matthewmcgarvey
Copy link
Contributor

Description

When specifying additionalProperties, reservedWordMappings,etc. without specifying configOptions the plugin throws a NullPointerException.

Swagger-codegen version

2.3.1 and master (2.4.0-SNAPSHOT)

Swagger declaration file content or url
<plugin>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-codegen-maven-plugin</artifactId>
    <version>2.3.1</version>
    <executions>
        <execution>
            <goals>
                <goal>generate</goal>
            </goals>
            <configuration>
                <inputSpec>src/main/resources/api.yaml</inputSpec>
                <language>java</language>
                <additionalProperties>
                    <additionalProperty>key=value</additionalProperty>
                </additionalProperties>
            </configuration>
        </execution>
    </executions>
</plugin>
Steps to reproduce

Specify additionalProperties without configOptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants