ktorio / ktor-init-tools

ktor project generator web page and IDEA plugin
https://start.ktor.io
Other
40 stars 20 forks source link

RangeError: Maximum call stack size exceeded #41

Open DmitryVoronko opened 3 years ago

DmitryVoronko commented 3 years ago

When I'm trying to upload swagger.yaml to https://start.ktor.io/# I receive RangeError: Maximum call stack size exceeded. Idea plugin in such case throwing an error without messages.

I deleted optional start begin of yaml document --- and file has uploaded successfully to https://start.ktor.io/#.

You can simply reproduce that by adding optional start begin of yaml document --- to ktor-init-tools/ktor-generator/src/jvmTest/resources/swagger.yaml and running ktor-init-tools/ktor-generator/src/jvmTest/kotlin/io/ktor/start/SwaggerGenerationTest.kt