Skip to content

bug: SchemaGenerator.kotlinx not supported in Kotlin 2.2.21 #227

@brosssh

Description

@brosssh

Following the documentation from here and using latest version 5.4.0, I'm trying to do:

schemas {
            generator = `SchemaGenerator.kotlinx `{
                namingStrategy = JsonNamingStrategy.SnakeCase
            }
        }

However, I get the error:

Cannot access class 'CompiledSwaggerSchemaData'. Check your module classpath for missing or conflicting dependencies.
Cannot access class 'InitialTypeData'. Check your module classpath for missing or conflicting dependencies.

This is an issue due to Kotlin 2.2.21. If I try to rollback Kotlin to 2.0.21 and also rollback this library to 5.3.0, it works fine but with a warning:

Cannot access class 'CompiledSwaggerSchemaData' in the expression type. This may be forbidden soon. Check the module classpath for missing or conflicting dependencies.

According to the changelog, Kotlin 2.2.21 should be supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions