
com.ancientlightstudios.quarkus.kotlin.openapi.refactoring.OptimizeSchemeRefactoring.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-kotlin-openapi-maven-plugin Show documentation
Show all versions of quarkus-kotlin-openapi-maven-plugin Show documentation
A Maven plugin to use the OpenAPI generator.
package com.ancientlightstudios.quarkus.kotlin.openapi.refactoring
class OptimizeSchemeRefactoring : SpecRefactoring {
override fun RefactoringContext.perform() {
// if there is a single one-item *Of component, convert it into an allOf
performRefactoring(ReplaceSimpleOfComponentsRefactoring())
// if there is just a single base-ref with nothing else, replace it
performRefactoring(ReplaceForwardSchemaRefactoring())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy