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

[BUG] Kotlin spring reactive api test invalid #3106

Closed
5 of 6 tasks
Zomzog opened this issue Jun 5, 2019 · 0 comments · Fixed by #3107
Closed
5 of 6 tasks

[BUG] Kotlin spring reactive api test invalid #3106

Zomzog opened this issue Jun 5, 2019 · 0 comments · Fixed by #3107

Comments

@Zomzog
Copy link
Contributor

Zomzog commented Jun 5, 2019

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

When generating API with array response, Flow import is missing on API tests.

Test also need runBlockingTest to handle suspend functions.

openapi-generator version

4.0.2-SNAPSHOT

OpenAPI declaration file content or url
      responses:
        200:
          description: "Status 200"
          content:
            application/json:
              schema:
                type: "array"
                items:
                  type: "string"
Command line used for generation
            <plugin>
                <groupId>org.openapitools</groupId>
                <artifactId>openapi-generator-maven-plugin</artifactId>
                <version>4.0.2-SNAPSHOT</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <inputSpec>${project.basedir}/src/main/resources/api.yaml</inputSpec>
                            <generatorName>kotlin-spring</generatorName>
                            <library>spring-boot</library>
                            <configOptions>
                                <reactive>true</reactive>
                            </configOptions>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
Related issues/PRs
Suggest a fix

Add import and runBlockingTest.

@Zomzog Zomzog changed the title [BUG] Kotlin spring reactive missing flow import [BUG] Kotlin spring reactive api test invalid Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant