diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e79f6be4..24d7352be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +### [1.0.0-rc] - May 8th, 2021 + +### Changed + +- Migrated to io.bkbn group and package name + ### [1.0.0-beta] - May 6th, 2021 ### Added diff --git a/README.md b/README.md index 2c4cee17f..89c6c31de 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ fun RepositoryHandler.github(packageUrl: String) = maven { // 2 Add the repo in question (in this case Kompendium) repositories { - github("https://maven.pkg.github.com/lg-backbone/kompendium") + github("https://maven.pkg.github.com/bkbnio/kompendium") } // 3 Add the package like any normal dependency @@ -199,7 +199,7 @@ If this is a blocker, please open a GitHub issue, and we can start to think out Work on V1 of Kompendium has come to a close. This, however, does not mean it has achieved complete parity with the OpenAPI feature spec, nor does it have all-of-the nice to have features that a truly next-gen API spec should have. There are several outstanding features that have been added to the -[V2 Milestone](https://github.com/lg-backbone/kompendium/milestone/2). Among others, this includes +[V2 Milestone](https://github.com/bkbnio/kompendium/milestone/2). Among others, this includes - Polymorphic support - AsyncAPI Integration @@ -207,4 +207,4 @@ should have. There are several outstanding features that have been added to the - MavenCentral Release If you have a feature that you would like to see implemented that is not on this list, or discover a 🐞, please open -an issue [here](https://github.com/lg-backbone/kompendium/issues/new) +an issue [here](https://github.com/bkbnio/kompendium/issues/new) diff --git a/build.gradle.kts b/build.gradle.kts index 03ea5b9e6..23f963445 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } allprojects { - group = "org.leafygreens" + group = "io.bkbn" version = run { val baseVersion = project.findProperty("project.version") ?: error("project.version must be set in gradle.properties") diff --git a/gradle.properties b/gradle.properties index a2d9e155d..ac22559f2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Kompendium -project.version=1.0.0-beta +project.version=1.0.0-rc # Kotlin kotlin.code.style=official # Gradle diff --git a/kompendium-auth/build.gradle.kts b/kompendium-auth/build.gradle.kts index 572fc3d8b..5e106e1e6 100644 --- a/kompendium-auth/build.gradle.kts +++ b/kompendium-auth/build.gradle.kts @@ -24,7 +24,7 @@ publishing { repositories { maven { name = "GithubPackages" - url = uri("https://maven.pkg.github.com/lg-backbone/kompendium") + url = uri("https://maven.pkg.github.com/bkbnio/kompendium") credentials { username = System.getenv("GITHUB_ACTOR") password = System.getenv("GITHUB_TOKEN") diff --git a/kompendium-auth/src/main/kotlin/org/leafygreens/kompendium/auth/AuthPathCalculator.kt b/kompendium-auth/src/main/kotlin/io/bkbn/kompendium/auth/AuthPathCalculator.kt similarity index 84% rename from kompendium-auth/src/main/kotlin/org/leafygreens/kompendium/auth/AuthPathCalculator.kt rename to kompendium-auth/src/main/kotlin/io/bkbn/kompendium/auth/AuthPathCalculator.kt index e649497ed..16a149ce9 100644 --- a/kompendium-auth/src/main/kotlin/org/leafygreens/kompendium/auth/AuthPathCalculator.kt +++ b/kompendium-auth/src/main/kotlin/io/bkbn/kompendium/auth/AuthPathCalculator.kt @@ -1,8 +1,8 @@ -package org.leafygreens.kompendium.auth +package io.bkbn.kompendium.auth import io.ktor.auth.AuthenticationRouteSelector import io.ktor.routing.Route -import org.leafygreens.kompendium.path.CorePathCalculator +import io.bkbn.kompendium.path.CorePathCalculator import org.slf4j.LoggerFactory class AuthPathCalculator : CorePathCalculator() { diff --git a/kompendium-auth/src/main/kotlin/org/leafygreens/kompendium/auth/KompendiumAuth.kt b/kompendium-auth/src/main/kotlin/io/bkbn/kompendium/auth/KompendiumAuth.kt similarity index 89% rename from kompendium-auth/src/main/kotlin/org/leafygreens/kompendium/auth/KompendiumAuth.kt rename to kompendium-auth/src/main/kotlin/io/bkbn/kompendium/auth/KompendiumAuth.kt index a7a113bed..6779a4c0d 100644 --- a/kompendium-auth/src/main/kotlin/org/leafygreens/kompendium/auth/KompendiumAuth.kt +++ b/kompendium-auth/src/main/kotlin/io/bkbn/kompendium/auth/KompendiumAuth.kt @@ -1,12 +1,12 @@ -package org.leafygreens.kompendium.auth +package io.bkbn.kompendium.auth import io.ktor.auth.Authentication import io.ktor.auth.basic import io.ktor.auth.BasicAuthenticationProvider import io.ktor.auth.jwt.jwt import io.ktor.auth.jwt.JWTAuthenticationProvider -import org.leafygreens.kompendium.Kompendium -import org.leafygreens.kompendium.models.oas.OpenApiSpecSchemaSecurity +import io.bkbn.kompendium.Kompendium +import io.bkbn.kompendium.models.oas.OpenApiSpecSchemaSecurity object KompendiumAuth { diff --git a/kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/KompendiumAuthTest.kt b/kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/KompendiumAuthTest.kt similarity index 89% rename from kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/KompendiumAuthTest.kt rename to kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/KompendiumAuthTest.kt index fc773b994..51684ad7f 100644 --- a/kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/KompendiumAuthTest.kt +++ b/kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/KompendiumAuthTest.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.auth +package io.bkbn.kompendium.auth import com.fasterxml.jackson.annotation.JsonInclude import com.fasterxml.jackson.databind.SerializationFeature @@ -21,17 +21,17 @@ import io.ktor.server.testing.withTestApplication import kotlin.test.AfterTest import kotlin.test.assertEquals import org.junit.Test -import org.leafygreens.kompendium.Kompendium -import org.leafygreens.kompendium.Notarized.notarizedGet -import org.leafygreens.kompendium.auth.KompendiumAuth.notarizedBasic -import org.leafygreens.kompendium.auth.KompendiumAuth.notarizedJwt -import org.leafygreens.kompendium.auth.util.TestData -import org.leafygreens.kompendium.auth.util.TestParams -import org.leafygreens.kompendium.auth.util.TestResponse -import org.leafygreens.kompendium.models.meta.MethodInfo -import org.leafygreens.kompendium.models.meta.ResponseInfo -import org.leafygreens.kompendium.routes.openApi -import org.leafygreens.kompendium.routes.redoc +import io.bkbn.kompendium.Kompendium +import io.bkbn.kompendium.Notarized.notarizedGet +import io.bkbn.kompendium.auth.KompendiumAuth.notarizedBasic +import io.bkbn.kompendium.auth.KompendiumAuth.notarizedJwt +import io.bkbn.kompendium.auth.util.TestData +import io.bkbn.kompendium.auth.util.TestParams +import io.bkbn.kompendium.auth.util.TestResponse +import io.bkbn.kompendium.models.meta.MethodInfo +import io.bkbn.kompendium.models.meta.ResponseInfo +import io.bkbn.kompendium.routes.openApi +import io.bkbn.kompendium.routes.redoc internal class KompendiumAuthTest { diff --git a/kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/util/TestData.kt b/kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/util/TestData.kt similarity index 88% rename from kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/util/TestData.kt rename to kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/util/TestData.kt index 1b6b10d23..446dec2b9 100644 --- a/kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/util/TestData.kt +++ b/kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/util/TestData.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.auth.util +package io.bkbn.kompendium.auth.util import java.io.File diff --git a/kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/util/TestModels.kt b/kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/util/TestModels.kt similarity index 54% rename from kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/util/TestModels.kt rename to kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/util/TestModels.kt index 937c92c03..cebdcc1c6 100644 --- a/kompendium-auth/src/test/kotlin/org/leafygreens/kompendium/auth/util/TestModels.kt +++ b/kompendium-auth/src/test/kotlin/io/bkbn/kompendium/auth/util/TestModels.kt @@ -1,8 +1,8 @@ -package org.leafygreens.kompendium.auth.util +package io.bkbn.kompendium.auth.util -import org.leafygreens.kompendium.annotations.KompendiumField -import org.leafygreens.kompendium.annotations.KompendiumParam -import org.leafygreens.kompendium.annotations.ParamType +import io.bkbn.kompendium.annotations.KompendiumField +import io.bkbn.kompendium.annotations.KompendiumParam +import io.bkbn.kompendium.annotations.ParamType data class TestParams( @KompendiumParam(ParamType.PATH) val a: String, diff --git a/kompendium-core/build.gradle.kts b/kompendium-core/build.gradle.kts index e49bdccf8..a54119dd2 100644 --- a/kompendium-core/build.gradle.kts +++ b/kompendium-core/build.gradle.kts @@ -21,7 +21,7 @@ publishing { repositories { maven { name = "GithubPackages" - url = uri("https://maven.pkg.github.com/lg-backbone/kompendium") + url = uri("https://maven.pkg.github.com/bkbnio/kompendium") credentials { username = System.getenv("GITHUB_ACTOR") password = System.getenv("GITHUB_TOKEN") diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Kompendium.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/Kompendium.kt similarity index 58% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Kompendium.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/Kompendium.kt index 47c104ae5..e9ea11559 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Kompendium.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/Kompendium.kt @@ -1,11 +1,11 @@ -package org.leafygreens.kompendium +package io.bkbn.kompendium -import org.leafygreens.kompendium.models.meta.ErrorMap -import org.leafygreens.kompendium.models.meta.SchemaMap -import org.leafygreens.kompendium.models.oas.OpenApiSpec -import org.leafygreens.kompendium.models.oas.OpenApiSpecInfo -import org.leafygreens.kompendium.path.CorePathCalculator -import org.leafygreens.kompendium.path.PathCalculator +import io.bkbn.kompendium.models.meta.ErrorMap +import io.bkbn.kompendium.models.meta.SchemaMap +import io.bkbn.kompendium.models.oas.OpenApiSpec +import io.bkbn.kompendium.models.oas.OpenApiSpecInfo +import io.bkbn.kompendium.path.CorePathCalculator +import io.bkbn.kompendium.path.PathCalculator /** * Maintains all state for the Kompendium library diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/KompendiumPreFlight.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/KompendiumPreFlight.kt similarity index 98% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/KompendiumPreFlight.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/KompendiumPreFlight.kt index 97a23e5cc..7e729671d 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/KompendiumPreFlight.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/KompendiumPreFlight.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium +package io.bkbn.kompendium import io.ktor.routing.Route import kotlin.reflect.KType diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Kontent.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/Kontent.kt similarity index 89% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Kontent.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/Kontent.kt index 489824fc9..0ac0045b7 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Kontent.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/Kontent.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium +package io.bkbn.kompendium import java.util.UUID import kotlin.reflect.KClass @@ -7,18 +7,18 @@ import kotlin.reflect.full.isSubclassOf import kotlin.reflect.full.memberProperties import kotlin.reflect.jvm.javaField import kotlin.reflect.typeOf -import org.leafygreens.kompendium.models.meta.SchemaMap -import org.leafygreens.kompendium.models.oas.ArraySchema -import org.leafygreens.kompendium.models.oas.DictionarySchema -import org.leafygreens.kompendium.models.oas.EnumSchema -import org.leafygreens.kompendium.models.oas.FormatSchema -import org.leafygreens.kompendium.models.oas.ObjectSchema -import org.leafygreens.kompendium.models.oas.ReferencedSchema -import org.leafygreens.kompendium.models.oas.SimpleSchema -import org.leafygreens.kompendium.util.Helpers.COMPONENT_SLUG -import org.leafygreens.kompendium.util.Helpers.genericNameAdapter -import org.leafygreens.kompendium.util.Helpers.getReferenceSlug -import org.leafygreens.kompendium.util.Helpers.logged +import io.bkbn.kompendium.models.meta.SchemaMap +import io.bkbn.kompendium.models.oas.ArraySchema +import io.bkbn.kompendium.models.oas.DictionarySchema +import io.bkbn.kompendium.models.oas.EnumSchema +import io.bkbn.kompendium.models.oas.FormatSchema +import io.bkbn.kompendium.models.oas.ObjectSchema +import io.bkbn.kompendium.models.oas.ReferencedSchema +import io.bkbn.kompendium.models.oas.SimpleSchema +import io.bkbn.kompendium.util.Helpers.COMPONENT_SLUG +import io.bkbn.kompendium.util.Helpers.genericNameAdapter +import io.bkbn.kompendium.util.Helpers.getReferenceSlug +import io.bkbn.kompendium.util.Helpers.logged import org.slf4j.LoggerFactory /** diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/MethodParser.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/MethodParser.kt similarity index 88% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/MethodParser.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/MethodParser.kt index bc1bbd5e2..c8bc4b12d 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/MethodParser.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/MethodParser.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium +package io.bkbn.kompendium import java.util.UUID import kotlin.reflect.KClass @@ -10,21 +10,21 @@ import kotlin.reflect.full.findAnnotation import kotlin.reflect.full.memberProperties import kotlin.reflect.full.primaryConstructor import kotlin.reflect.jvm.javaField -import org.leafygreens.kompendium.annotations.KompendiumParam -import org.leafygreens.kompendium.models.meta.MethodInfo -import org.leafygreens.kompendium.models.meta.RequestInfo -import org.leafygreens.kompendium.models.meta.ResponseInfo -import org.leafygreens.kompendium.models.oas.ExampleWrapper -import org.leafygreens.kompendium.models.oas.OpenApiSpecMediaType -import org.leafygreens.kompendium.models.oas.OpenApiSpecParameter -import org.leafygreens.kompendium.models.oas.OpenApiSpecPathItemOperation -import org.leafygreens.kompendium.models.oas.OpenApiSpecReferencable -import org.leafygreens.kompendium.models.oas.OpenApiSpecReferenceObject -import org.leafygreens.kompendium.models.oas.OpenApiSpecRequest -import org.leafygreens.kompendium.models.oas.OpenApiSpecResponse -import org.leafygreens.kompendium.util.Helpers -import org.leafygreens.kompendium.util.Helpers.getReferenceSlug -import org.leafygreens.kompendium.util.Helpers.getSimpleSlug +import io.bkbn.kompendium.annotations.KompendiumParam +import io.bkbn.kompendium.models.meta.MethodInfo +import io.bkbn.kompendium.models.meta.RequestInfo +import io.bkbn.kompendium.models.meta.ResponseInfo +import io.bkbn.kompendium.models.oas.ExampleWrapper +import io.bkbn.kompendium.models.oas.OpenApiSpecMediaType +import io.bkbn.kompendium.models.oas.OpenApiSpecParameter +import io.bkbn.kompendium.models.oas.OpenApiSpecPathItemOperation +import io.bkbn.kompendium.models.oas.OpenApiSpecReferencable +import io.bkbn.kompendium.models.oas.OpenApiSpecReferenceObject +import io.bkbn.kompendium.models.oas.OpenApiSpecRequest +import io.bkbn.kompendium.models.oas.OpenApiSpecResponse +import io.bkbn.kompendium.util.Helpers +import io.bkbn.kompendium.util.Helpers.getReferenceSlug +import io.bkbn.kompendium.util.Helpers.getSimpleSlug /** * The MethodParser is responsible for converting route metadata and types into an OpenAPI compatible data class. diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Notarized.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/Notarized.kt similarity index 88% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Notarized.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/Notarized.kt index c00181327..f6023fd7c 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/Notarized.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/Notarized.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium +package io.bkbn.kompendium import io.ktor.application.ApplicationCall import io.ktor.features.StatusPages @@ -7,15 +7,15 @@ import io.ktor.routing.Route import io.ktor.routing.method import io.ktor.util.pipeline.PipelineContext import io.ktor.util.pipeline.PipelineInterceptor -import org.leafygreens.kompendium.KompendiumPreFlight.errorNotarizationPreFlight -import org.leafygreens.kompendium.MethodParser.parseErrorInfo -import org.leafygreens.kompendium.MethodParser.parseMethodInfo -import org.leafygreens.kompendium.models.meta.MethodInfo.GetInfo -import org.leafygreens.kompendium.models.meta.MethodInfo.PostInfo -import org.leafygreens.kompendium.models.meta.MethodInfo.PutInfo -import org.leafygreens.kompendium.models.meta.MethodInfo.DeleteInfo -import org.leafygreens.kompendium.models.meta.ResponseInfo -import org.leafygreens.kompendium.models.oas.OpenApiSpecPathItem +import io.bkbn.kompendium.KompendiumPreFlight.errorNotarizationPreFlight +import io.bkbn.kompendium.MethodParser.parseErrorInfo +import io.bkbn.kompendium.MethodParser.parseMethodInfo +import io.bkbn.kompendium.models.meta.MethodInfo.GetInfo +import io.bkbn.kompendium.models.meta.MethodInfo.PostInfo +import io.bkbn.kompendium.models.meta.MethodInfo.PutInfo +import io.bkbn.kompendium.models.meta.MethodInfo.DeleteInfo +import io.bkbn.kompendium.models.meta.ResponseInfo +import io.bkbn.kompendium.models.oas.OpenApiSpecPathItem /** * Notarization methods are the primary way that a Ktor API using Kompendium differentiates diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/annotations/KompendiumField.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/annotations/KompendiumField.kt similarity index 72% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/annotations/KompendiumField.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/annotations/KompendiumField.kt index cc64f8da0..b25e4d8be 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/annotations/KompendiumField.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/annotations/KompendiumField.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.annotations +package io.bkbn.kompendium.annotations @Retention(AnnotationRetention.RUNTIME) @Target(AnnotationTarget.PROPERTY) diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/annotations/KompendiumParam.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/annotations/KompendiumParam.kt similarity index 82% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/annotations/KompendiumParam.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/annotations/KompendiumParam.kt index 2c8511b1d..a8fc10517 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/annotations/KompendiumParam.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/annotations/KompendiumParam.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.annotations +package io.bkbn.kompendium.annotations @Retention(AnnotationRetention.RUNTIME) @Target(AnnotationTarget.PROPERTY) diff --git a/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/ErrorMap.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/ErrorMap.kt new file mode 100644 index 000000000..c9b02f345 --- /dev/null +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/ErrorMap.kt @@ -0,0 +1,6 @@ +package io.bkbn.kompendium.models.meta + +import kotlin.reflect.KType +import io.bkbn.kompendium.models.oas.OpenApiSpecResponse + +typealias ErrorMap = Map>?> diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/MethodInfo.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/MethodInfo.kt similarity index 98% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/MethodInfo.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/MethodInfo.kt index 574cc4ec0..93f2906a5 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/MethodInfo.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/MethodInfo.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.meta +package io.bkbn.kompendium.models.meta import kotlin.reflect.KClass diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/RequestInfo.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/RequestInfo.kt similarity index 80% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/RequestInfo.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/RequestInfo.kt index 625aa0932..f9c825427 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/RequestInfo.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/RequestInfo.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.meta +package io.bkbn.kompendium.models.meta data class RequestInfo( val description: String, diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/ResponseInfo.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/ResponseInfo.kt similarity index 83% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/ResponseInfo.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/ResponseInfo.kt index 0c5c4628d..78c3ce4af 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/ResponseInfo.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/ResponseInfo.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.meta +package io.bkbn.kompendium.models.meta import io.ktor.http.HttpStatusCode diff --git a/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/SchemaMap.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/SchemaMap.kt new file mode 100644 index 000000000..11e9b8372 --- /dev/null +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/meta/SchemaMap.kt @@ -0,0 +1,5 @@ +package io.bkbn.kompendium.models.meta + +import io.bkbn.kompendium.models.oas.OpenApiSpecComponentSchema + +typealias SchemaMap = Map diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpec.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpec.kt similarity index 93% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpec.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpec.kt index a5205a84d..5eb07bcf7 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpec.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpec.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpec( val openapi: String = "3.0.3", diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecComponentSchema.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecComponentSchema.kt similarity index 97% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecComponentSchema.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecComponentSchema.kt index ea5a5d87b..bba9cb9c0 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecComponentSchema.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecComponentSchema.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas sealed class OpenApiSpecComponentSchema(open val default: Any? = null) { diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecComponents.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecComponents.kt similarity index 87% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecComponents.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecComponents.kt index e333561cc..49c628a52 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecComponents.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecComponents.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas // TODO I *think* the only thing I need here is the security https://swagger.io/specification/#components-object data class OpenApiSpecComponents( diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecExternalDocumentation.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecExternalDocumentation.kt similarity index 70% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecExternalDocumentation.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecExternalDocumentation.kt index 42398d333..9b1704f3a 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecExternalDocumentation.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecExternalDocumentation.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas import java.net.URI diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfo.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfo.kt similarity index 85% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfo.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfo.kt index e37e32217..2ae05380d 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfo.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfo.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas import java.net.URI diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfoContact.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfoContact.kt similarity index 77% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfoContact.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfoContact.kt index e70e54589..1938b0a5d 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfoContact.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfoContact.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas import java.net.URI diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfoLicense.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfoLicense.kt similarity index 68% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfoLicense.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfoLicense.kt index a8f6af80b..e6d8a81c7 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecInfoLicense.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecInfoLicense.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas import java.net.URI diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecLink.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecLink.kt similarity index 87% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecLink.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecLink.kt index 5f345ec88..ee7161527 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecLink.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecLink.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecLink( val operationRef: String?, // todo mutually exclusive with operationId diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecMediaType.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecMediaType.kt similarity index 79% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecMediaType.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecMediaType.kt index 75365ecee..0693e225d 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecMediaType.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecMediaType.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecMediaType( val schema: OpenApiSpecReferenceObject, diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecOAuthFlow.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecOAuthFlow.kt similarity index 80% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecOAuthFlow.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecOAuthFlow.kt index 8a63b8216..a39ac0260 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecOAuthFlow.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecOAuthFlow.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas import java.net.URI diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecOAuthFlows.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecOAuthFlows.kt similarity index 62% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecOAuthFlows.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecOAuthFlows.kt index d9612cfe8..7921096e3 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecOAuthFlows.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecOAuthFlows.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecOAuthFlows( val implicit: OpenApiSpecOAuthFlow?, diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecPathItem.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecPathItem.kt similarity index 92% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecPathItem.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecPathItem.kt index cf41f5b8b..5020f7869 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecPathItem.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecPathItem.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecPathItem( var get: OpenApiSpecPathItemOperation? = null, diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecPathItemOperation.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecPathItemOperation.kt similarity index 94% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecPathItemOperation.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecPathItemOperation.kt index 419116382..f57b3151a 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecPathItemOperation.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecPathItemOperation.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecPathItemOperation( var tags: Set = emptySet(), diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecReferencable.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecReferencable.kt similarity index 95% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecReferencable.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecReferencable.kt index 0b0cac552..ad066ebfa 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecReferencable.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecReferencable.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas sealed class OpenApiSpecReferencable diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecSchemaSecurity.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecSchemaSecurity.kt similarity index 88% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecSchemaSecurity.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecSchemaSecurity.kt index 7732b8ece..eca2d9c9d 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecSchemaSecurity.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecSchemaSecurity.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecSchemaSecurity( val type: String? = null, // TODO Enum? "apiKey", "http", "oauth2", "openIdConnect" diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecServer.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecServer.kt similarity index 78% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecServer.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecServer.kt index bd58384b5..3f9372229 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecServer.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecServer.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas import java.net.URI diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecServerVariable.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecServerVariable.kt similarity index 75% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecServerVariable.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecServerVariable.kt index ce6504c8d..1855a4fe9 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecServerVariable.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecServerVariable.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecServerVariable( val `enum`: Set, // todo enforce not empty diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecTag.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecTag.kt similarity index 76% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecTag.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecTag.kt index 276800b94..07af2e495 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/oas/OpenApiSpecTag.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/models/oas/OpenApiSpecTag.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.models.oas +package io.bkbn.kompendium.models.oas data class OpenApiSpecTag( val name: String, diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/path/CorePathCalculator.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/path/CorePathCalculator.kt similarity index 97% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/path/CorePathCalculator.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/path/CorePathCalculator.kt index 44f19250b..02b56f46b 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/path/CorePathCalculator.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/path/CorePathCalculator.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.path +package io.bkbn.kompendium.path import io.ktor.routing.PathSegmentConstantRouteSelector import io.ktor.routing.PathSegmentParameterRouteSelector diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/path/PathCalculator.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/path/PathCalculator.kt similarity index 90% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/path/PathCalculator.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/path/PathCalculator.kt index b3eedb6e8..bb235c129 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/path/PathCalculator.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/path/PathCalculator.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.path +package io.bkbn.kompendium.path import io.ktor.routing.Route diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/routes/OpenApiRoute.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/routes/OpenApiRoute.kt similarity index 79% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/routes/OpenApiRoute.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/routes/OpenApiRoute.kt index c506569b3..7bc01c0db 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/routes/OpenApiRoute.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/routes/OpenApiRoute.kt @@ -1,11 +1,11 @@ -package org.leafygreens.kompendium.routes +package io.bkbn.kompendium.routes import io.ktor.application.call import io.ktor.response.respond import io.ktor.routing.Routing import io.ktor.routing.get import io.ktor.routing.route -import org.leafygreens.kompendium.models.oas.OpenApiSpec +import io.bkbn.kompendium.models.oas.OpenApiSpec /** * Provides an out-of-the-box route to return the generated [OpenApiSpec] diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/routes/Redoc.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/routes/Redoc.kt similarity index 93% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/routes/Redoc.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/routes/Redoc.kt index f99eec5c9..53f7cc3b6 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/routes/Redoc.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/routes/Redoc.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.routes +package io.bkbn.kompendium.routes import io.ktor.application.call import io.ktor.html.respondHtml @@ -13,7 +13,7 @@ import kotlinx.html.script import kotlinx.html.style import kotlinx.html.title import kotlinx.html.unsafe -import org.leafygreens.kompendium.models.oas.OpenApiSpec +import io.bkbn.kompendium.models.oas.OpenApiSpec /** * Provides an out-of-the-box route to view docs using ReDoc diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/util/Helpers.kt b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/util/Helpers.kt similarity index 96% rename from kompendium-core/src/main/kotlin/org/leafygreens/kompendium/util/Helpers.kt rename to kompendium-core/src/main/kotlin/io/bkbn/kompendium/util/Helpers.kt index 5cc11afca..93b6e2a3a 100644 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/util/Helpers.kt +++ b/kompendium-core/src/main/kotlin/io/bkbn/kompendium/util/Helpers.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.util +package io.bkbn.kompendium.util import java.lang.reflect.ParameterizedType import kotlin.reflect.KClass @@ -6,7 +6,6 @@ import kotlin.reflect.KProperty import kotlin.reflect.KType import kotlin.reflect.full.createType import kotlin.reflect.jvm.javaField -import org.leafygreens.kompendium.util.Helpers.getReferenceSlug import org.slf4j.LoggerFactory object Helpers { diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/ErrorMap.kt b/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/ErrorMap.kt deleted file mode 100644 index 9c40e611d..000000000 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/ErrorMap.kt +++ /dev/null @@ -1,6 +0,0 @@ -package org.leafygreens.kompendium.models.meta - -import kotlin.reflect.KType -import org.leafygreens.kompendium.models.oas.OpenApiSpecResponse - -typealias ErrorMap = Map>?> diff --git a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/SchemaMap.kt b/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/SchemaMap.kt deleted file mode 100644 index d2d7e9651..000000000 --- a/kompendium-core/src/main/kotlin/org/leafygreens/kompendium/models/meta/SchemaMap.kt +++ /dev/null @@ -1,5 +0,0 @@ -package org.leafygreens.kompendium.models.meta - -import org.leafygreens.kompendium.models.oas.OpenApiSpecComponentSchema - -typealias SchemaMap = Map diff --git a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/KompendiumTest.kt b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/KompendiumTest.kt similarity index 87% rename from kompendium-core/src/test/kotlin/org/leafygreens/kompendium/KompendiumTest.kt rename to kompendium-core/src/test/kotlin/io/bkbn/kompendium/KompendiumTest.kt index ce4aee157..f4c11783d 100644 --- a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/KompendiumTest.kt +++ b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/KompendiumTest.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium +package io.bkbn.kompendium import io.ktor.application.Application import io.ktor.http.HttpMethod @@ -10,33 +10,33 @@ import java.net.URI import kotlin.test.AfterTest import kotlin.test.Test import kotlin.test.assertEquals -import org.leafygreens.kompendium.models.oas.OpenApiSpecInfo -import org.leafygreens.kompendium.models.oas.OpenApiSpecInfoContact -import org.leafygreens.kompendium.models.oas.OpenApiSpecInfoLicense -import org.leafygreens.kompendium.models.oas.OpenApiSpecServer -import org.leafygreens.kompendium.routes.openApi -import org.leafygreens.kompendium.routes.redoc -import org.leafygreens.kompendium.util.TestHelpers.getFileSnapshot -import org.leafygreens.kompendium.util.complexType -import org.leafygreens.kompendium.util.configModule -import org.leafygreens.kompendium.util.emptyGet -import org.leafygreens.kompendium.util.nestedUnderRootModule -import org.leafygreens.kompendium.util.nonRequiredParamsGet -import org.leafygreens.kompendium.util.notarizedDeleteModule -import org.leafygreens.kompendium.util.notarizedGetModule -import org.leafygreens.kompendium.util.notarizedGetWithMultipleThrowables -import org.leafygreens.kompendium.util.notarizedGetWithNotarizedException -import org.leafygreens.kompendium.util.notarizedPostModule -import org.leafygreens.kompendium.util.notarizedPutModule -import org.leafygreens.kompendium.util.pathParsingTestModule -import org.leafygreens.kompendium.util.primitives -import org.leafygreens.kompendium.util.returnsList -import org.leafygreens.kompendium.util.rootModule -import org.leafygreens.kompendium.util.statusPageModule -import org.leafygreens.kompendium.util.statusPageMultiExceptions -import org.leafygreens.kompendium.util.trailingSlash -import org.leafygreens.kompendium.util.withDefaultParameter -import org.leafygreens.kompendium.util.withExamples +import io.bkbn.kompendium.models.oas.OpenApiSpecInfo +import io.bkbn.kompendium.models.oas.OpenApiSpecInfoContact +import io.bkbn.kompendium.models.oas.OpenApiSpecInfoLicense +import io.bkbn.kompendium.models.oas.OpenApiSpecServer +import io.bkbn.kompendium.routes.openApi +import io.bkbn.kompendium.routes.redoc +import io.bkbn.kompendium.util.TestHelpers.getFileSnapshot +import io.bkbn.kompendium.util.complexType +import io.bkbn.kompendium.util.configModule +import io.bkbn.kompendium.util.emptyGet +import io.bkbn.kompendium.util.nestedUnderRootModule +import io.bkbn.kompendium.util.nonRequiredParamsGet +import io.bkbn.kompendium.util.notarizedDeleteModule +import io.bkbn.kompendium.util.notarizedGetModule +import io.bkbn.kompendium.util.notarizedGetWithMultipleThrowables +import io.bkbn.kompendium.util.notarizedGetWithNotarizedException +import io.bkbn.kompendium.util.notarizedPostModule +import io.bkbn.kompendium.util.notarizedPutModule +import io.bkbn.kompendium.util.pathParsingTestModule +import io.bkbn.kompendium.util.primitives +import io.bkbn.kompendium.util.returnsList +import io.bkbn.kompendium.util.rootModule +import io.bkbn.kompendium.util.statusPageModule +import io.bkbn.kompendium.util.statusPageMultiExceptions +import io.bkbn.kompendium.util.trailingSlash +import io.bkbn.kompendium.util.withDefaultParameter +import io.bkbn.kompendium.util.withExamples internal class KompendiumTest { @@ -450,7 +450,7 @@ internal class KompendiumTest { ), license = OpenApiSpecInfoLicense( name = "MIT", - url = URI("https://github.com/lg-backbone/kompendium/blob/main/LICENSE") + url = URI("https://github.com/bkbnio/kompendium/blob/main/LICENSE") ) ), servers = mutableListOf( diff --git a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/KontentTest.kt b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/KontentTest.kt similarity index 83% rename from kompendium-core/src/test/kotlin/org/leafygreens/kompendium/KontentTest.kt rename to kompendium-core/src/test/kotlin/io/bkbn/kompendium/KontentTest.kt index f61aa066f..14e8f5a73 100644 --- a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/KontentTest.kt +++ b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/KontentTest.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium +package io.bkbn.kompendium import java.util.UUID import kotlin.test.Test @@ -7,21 +7,21 @@ import kotlin.test.assertFailsWith import kotlin.test.assertFalse import kotlin.test.assertNotNull import kotlin.test.assertTrue -import org.leafygreens.kompendium.Kontent.generateKontent -import org.leafygreens.kompendium.Kontent.generateParameterKontent -import org.leafygreens.kompendium.models.oas.DictionarySchema -import org.leafygreens.kompendium.models.oas.FormatSchema -import org.leafygreens.kompendium.models.oas.ObjectSchema -import org.leafygreens.kompendium.models.oas.ReferencedSchema -import org.leafygreens.kompendium.util.ComplexRequest -import org.leafygreens.kompendium.util.TestInvalidMap -import org.leafygreens.kompendium.util.TestNestedModel -import org.leafygreens.kompendium.util.TestSimpleModel -import org.leafygreens.kompendium.util.TestSimpleWithEnumList -import org.leafygreens.kompendium.util.TestSimpleWithEnums -import org.leafygreens.kompendium.util.TestSimpleWithList -import org.leafygreens.kompendium.util.TestSimpleWithMap -import org.leafygreens.kompendium.util.TestWithUUID +import io.bkbn.kompendium.Kontent.generateKontent +import io.bkbn.kompendium.Kontent.generateParameterKontent +import io.bkbn.kompendium.models.oas.DictionarySchema +import io.bkbn.kompendium.models.oas.FormatSchema +import io.bkbn.kompendium.models.oas.ObjectSchema +import io.bkbn.kompendium.models.oas.ReferencedSchema +import io.bkbn.kompendium.util.ComplexRequest +import io.bkbn.kompendium.util.TestInvalidMap +import io.bkbn.kompendium.util.TestNestedModel +import io.bkbn.kompendium.util.TestSimpleModel +import io.bkbn.kompendium.util.TestSimpleWithEnumList +import io.bkbn.kompendium.util.TestSimpleWithEnums +import io.bkbn.kompendium.util.TestSimpleWithList +import io.bkbn.kompendium.util.TestSimpleWithMap +import io.bkbn.kompendium.util.TestWithUUID @ExperimentalStdlibApi internal class KontentTest { diff --git a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestHelpers.kt b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestHelpers.kt similarity index 84% rename from kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestHelpers.kt rename to kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestHelpers.kt index 33ab1d827..9a37276d6 100644 --- a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestHelpers.kt +++ b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestHelpers.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.util +package io.bkbn.kompendium.util import java.io.File diff --git a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestModels.kt b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestModels.kt similarity index 83% rename from kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestModels.kt rename to kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestModels.kt index 64340c4c7..039b69a0a 100644 --- a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestModels.kt +++ b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestModels.kt @@ -1,12 +1,9 @@ -package org.leafygreens.kompendium.util +package io.bkbn.kompendium.util import java.util.UUID -import kotlin.reflect.KParameter -import kotlin.reflect.full.primaryConstructor -import org.leafygreens.kompendium.MethodParser -import org.leafygreens.kompendium.annotations.KompendiumField -import org.leafygreens.kompendium.annotations.KompendiumParam -import org.leafygreens.kompendium.annotations.ParamType +import io.bkbn.kompendium.annotations.KompendiumField +import io.bkbn.kompendium.annotations.KompendiumParam +import io.bkbn.kompendium.annotations.ParamType data class TestSimpleModel(val a: String, val b: Int) diff --git a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestModules.kt b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestModules.kt similarity index 92% rename from kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestModules.kt rename to kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestModules.kt index 82a281ca1..d699df992 100644 --- a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestModules.kt +++ b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestModules.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.util +package io.bkbn.kompendium.util import com.fasterxml.jackson.annotation.JsonInclude import com.fasterxml.jackson.databind.SerializationFeature @@ -13,14 +13,14 @@ import io.ktor.response.respond import io.ktor.response.respondText import io.ktor.routing.route import io.ktor.routing.routing -import org.leafygreens.kompendium.Notarized.notarizedDelete -import org.leafygreens.kompendium.Notarized.notarizedException -import org.leafygreens.kompendium.Notarized.notarizedGet -import org.leafygreens.kompendium.Notarized.notarizedPost -import org.leafygreens.kompendium.Notarized.notarizedPut -import org.leafygreens.kompendium.models.meta.MethodInfo -import org.leafygreens.kompendium.models.meta.RequestInfo -import org.leafygreens.kompendium.models.meta.ResponseInfo +import io.bkbn.kompendium.Notarized.notarizedDelete +import io.bkbn.kompendium.Notarized.notarizedException +import io.bkbn.kompendium.Notarized.notarizedGet +import io.bkbn.kompendium.Notarized.notarizedPost +import io.bkbn.kompendium.Notarized.notarizedPut +import io.bkbn.kompendium.models.meta.MethodInfo +import io.bkbn.kompendium.models.meta.RequestInfo +import io.bkbn.kompendium.models.meta.ResponseInfo fun Application.configModule() { install(ContentNegotiation) { diff --git a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestResponseInfo.kt b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestResponseInfo.kt similarity index 93% rename from kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestResponseInfo.kt rename to kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestResponseInfo.kt index bda7fea8b..1a653caf4 100644 --- a/kompendium-core/src/test/kotlin/org/leafygreens/kompendium/util/TestResponseInfo.kt +++ b/kompendium-core/src/test/kotlin/io/bkbn/kompendium/util/TestResponseInfo.kt @@ -1,9 +1,9 @@ -package org.leafygreens.kompendium.util +package io.bkbn.kompendium.util import io.ktor.http.HttpStatusCode -import org.leafygreens.kompendium.models.meta.MethodInfo -import org.leafygreens.kompendium.models.meta.RequestInfo -import org.leafygreens.kompendium.models.meta.ResponseInfo +import io.bkbn.kompendium.models.meta.MethodInfo +import io.bkbn.kompendium.models.meta.RequestInfo +import io.bkbn.kompendium.models.meta.ResponseInfo object TestResponseInfo { private val testGetResponse = ResponseInfo(HttpStatusCode.OK, "A Successful Endeavor") diff --git a/kompendium-core/src/test/resources/complex_type.json b/kompendium-core/src/test/resources/complex_type.json index b82db49c5..69293fc96 100644 --- a/kompendium-core/src/test/resources/complex_type.json +++ b/kompendium-core/src/test/resources/complex_type.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/example_req_and_resp.json b/kompendium-core/src/test/resources/example_req_and_resp.json index 13c76d25d..88981f70d 100644 --- a/kompendium-core/src/test/resources/example_req_and_resp.json +++ b/kompendium-core/src/test/resources/example_req_and_resp.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/nested_under_root.json b/kompendium-core/src/test/resources/nested_under_root.json index 99fdd0d41..696c505d2 100644 --- a/kompendium-core/src/test/resources/nested_under_root.json +++ b/kompendium-core/src/test/resources/nested_under_root.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/no_request_params_and_no_response_body.json b/kompendium-core/src/test/resources/no_request_params_and_no_response_body.json index e83294219..84a25fc3a 100644 --- a/kompendium-core/src/test/resources/no_request_params_and_no_response_body.json +++ b/kompendium-core/src/test/resources/no_request_params_and_no_response_body.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/non_required_params.json b/kompendium-core/src/test/resources/non_required_params.json index e10d51866..827f896d6 100644 --- a/kompendium-core/src/test/resources/non_required_params.json +++ b/kompendium-core/src/test/resources/non_required_params.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/notarized_delete.json b/kompendium-core/src/test/resources/notarized_delete.json index 2f76fcad2..0052a727b 100644 --- a/kompendium-core/src/test/resources/notarized_delete.json +++ b/kompendium-core/src/test/resources/notarized_delete.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/notarized_get.json b/kompendium-core/src/test/resources/notarized_get.json index b69b3d7cc..ce1e4b543 100644 --- a/kompendium-core/src/test/resources/notarized_get.json +++ b/kompendium-core/src/test/resources/notarized_get.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/notarized_get_with_exception_response.json b/kompendium-core/src/test/resources/notarized_get_with_exception_response.json index 43fe4e28e..22d81b251 100644 --- a/kompendium-core/src/test/resources/notarized_get_with_exception_response.json +++ b/kompendium-core/src/test/resources/notarized_get_with_exception_response.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/notarized_get_with_multiple_exception_responses.json b/kompendium-core/src/test/resources/notarized_get_with_multiple_exception_responses.json index c5c65d6a4..1d31f6e73 100644 --- a/kompendium-core/src/test/resources/notarized_get_with_multiple_exception_responses.json +++ b/kompendium-core/src/test/resources/notarized_get_with_multiple_exception_responses.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/notarized_post.json b/kompendium-core/src/test/resources/notarized_post.json index 687d58aa7..87097f530 100644 --- a/kompendium-core/src/test/resources/notarized_post.json +++ b/kompendium-core/src/test/resources/notarized_post.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/notarized_primitives.json b/kompendium-core/src/test/resources/notarized_primitives.json index 2f7763e0a..c9fc82a2e 100644 --- a/kompendium-core/src/test/resources/notarized_primitives.json +++ b/kompendium-core/src/test/resources/notarized_primitives.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/notarized_put.json b/kompendium-core/src/test/resources/notarized_put.json index 782290819..07eb76e05 100644 --- a/kompendium-core/src/test/resources/notarized_put.json +++ b/kompendium-core/src/test/resources/notarized_put.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/path_parser.json b/kompendium-core/src/test/resources/path_parser.json index ef36c3b91..a5a0e58ca 100644 --- a/kompendium-core/src/test/resources/path_parser.json +++ b/kompendium-core/src/test/resources/path_parser.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/query_with_default_parameter.json b/kompendium-core/src/test/resources/query_with_default_parameter.json index ce8e3f297..b795c3442 100644 --- a/kompendium-core/src/test/resources/query_with_default_parameter.json +++ b/kompendium-core/src/test/resources/query_with_default_parameter.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/response_list.json b/kompendium-core/src/test/resources/response_list.json index a467f3122..9ca52d779 100644 --- a/kompendium-core/src/test/resources/response_list.json +++ b/kompendium-core/src/test/resources/response_list.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/root_route.json b/kompendium-core/src/test/resources/root_route.json index a1d352fdb..86a02433b 100644 --- a/kompendium-core/src/test/resources/root_route.json +++ b/kompendium-core/src/test/resources/root_route.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-core/src/test/resources/trailing_slash.json b/kompendium-core/src/test/resources/trailing_slash.json index 6cb35dc64..4ba2b5275 100644 --- a/kompendium-core/src/test/resources/trailing_slash.json +++ b/kompendium-core/src/test/resources/trailing_slash.json @@ -12,7 +12,7 @@ }, "license" : { "name" : "MIT", - "url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE" + "url" : "https://github.com/bkbnio/kompendium/blob/main/LICENSE" } }, "servers" : [ { diff --git a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Main.kt b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Main.kt similarity index 70% rename from kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Main.kt rename to kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Main.kt index 6d09b450e..0e522d7bb 100644 --- a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Main.kt +++ b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Main.kt @@ -1,4 +1,4 @@ -package org.leafygreens.kompendium.playground +package io.bkbn.kompendium.playground import com.fasterxml.jackson.annotation.JsonInclude import com.fasterxml.jackson.databind.SerializationFeature @@ -19,24 +19,24 @@ import io.ktor.routing.routing import io.ktor.server.engine.embeddedServer import io.ktor.server.netty.Netty import io.ktor.webjars.Webjars -import org.leafygreens.kompendium.Notarized.notarizedDelete -import org.leafygreens.kompendium.Notarized.notarizedException -import org.leafygreens.kompendium.Notarized.notarizedGet -import org.leafygreens.kompendium.Notarized.notarizedPost -import org.leafygreens.kompendium.Notarized.notarizedPut -import org.leafygreens.kompendium.auth.KompendiumAuth.notarizedBasic -import org.leafygreens.kompendium.models.meta.ResponseInfo -import org.leafygreens.kompendium.playground.PlaygroundToC.testAuthenticatedSingleGetInfo -import org.leafygreens.kompendium.playground.PlaygroundToC.testGetWithExamples -import org.leafygreens.kompendium.playground.PlaygroundToC.testIdGetInfo -import org.leafygreens.kompendium.playground.PlaygroundToC.testPostWithExamples -import org.leafygreens.kompendium.playground.PlaygroundToC.testSingleDeleteInfo -import org.leafygreens.kompendium.playground.PlaygroundToC.testSingleGetInfo -import org.leafygreens.kompendium.playground.PlaygroundToC.testSingleGetInfoWithThrowable -import org.leafygreens.kompendium.playground.PlaygroundToC.testSinglePostInfo -import org.leafygreens.kompendium.playground.PlaygroundToC.testSinglePutInfo -import org.leafygreens.kompendium.routes.openApi -import org.leafygreens.kompendium.routes.redoc +import io.bkbn.kompendium.Notarized.notarizedDelete +import io.bkbn.kompendium.Notarized.notarizedException +import io.bkbn.kompendium.Notarized.notarizedGet +import io.bkbn.kompendium.Notarized.notarizedPost +import io.bkbn.kompendium.Notarized.notarizedPut +import io.bkbn.kompendium.auth.KompendiumAuth.notarizedBasic +import io.bkbn.kompendium.models.meta.ResponseInfo +import io.bkbn.kompendium.playground.PlaygroundToC.testAuthenticatedSingleGetInfo +import io.bkbn.kompendium.playground.PlaygroundToC.testGetWithExamples +import io.bkbn.kompendium.playground.PlaygroundToC.testIdGetInfo +import io.bkbn.kompendium.playground.PlaygroundToC.testPostWithExamples +import io.bkbn.kompendium.playground.PlaygroundToC.testSingleDeleteInfo +import io.bkbn.kompendium.playground.PlaygroundToC.testSingleGetInfo +import io.bkbn.kompendium.playground.PlaygroundToC.testSingleGetInfoWithThrowable +import io.bkbn.kompendium.playground.PlaygroundToC.testSinglePostInfo +import io.bkbn.kompendium.playground.PlaygroundToC.testSinglePutInfo +import io.bkbn.kompendium.routes.openApi +import io.bkbn.kompendium.routes.redoc import org.leafygreens.kompendium.swagger.swaggerUI fun main() { diff --git a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Models.kt b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Models.kt similarity index 72% rename from kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Models.kt rename to kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Models.kt index 23912da6c..6954143ee 100644 --- a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Models.kt +++ b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Models.kt @@ -1,8 +1,8 @@ -package org.leafygreens.kompendium.playground +package io.bkbn.kompendium.playground -import org.leafygreens.kompendium.annotations.KompendiumField -import org.leafygreens.kompendium.annotations.KompendiumParam -import org.leafygreens.kompendium.annotations.ParamType +import io.bkbn.kompendium.annotations.KompendiumField +import io.bkbn.kompendium.annotations.KompendiumParam +import io.bkbn.kompendium.annotations.ParamType data class ExampleParams( @KompendiumParam(ParamType.PATH) val id: Int, diff --git a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/PlaygroundToC.kt b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/PlaygroundToC.kt similarity index 93% rename from kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/PlaygroundToC.kt rename to kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/PlaygroundToC.kt index b8e621c9e..3cdf3d045 100644 --- a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/PlaygroundToC.kt +++ b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/PlaygroundToC.kt @@ -1,9 +1,9 @@ -package org.leafygreens.kompendium.playground +package io.bkbn.kompendium.playground import io.ktor.http.HttpStatusCode -import org.leafygreens.kompendium.models.meta.MethodInfo -import org.leafygreens.kompendium.models.meta.RequestInfo -import org.leafygreens.kompendium.models.meta.ResponseInfo +import io.bkbn.kompendium.models.meta.MethodInfo +import io.bkbn.kompendium.models.meta.RequestInfo +import io.bkbn.kompendium.models.meta.ResponseInfo object PlaygroundToC { val testGetWithExamples = MethodInfo.GetInfo( diff --git a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Spec.kt b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Spec.kt similarity index 64% rename from kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Spec.kt rename to kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Spec.kt index 5af4c2a71..959c10ad6 100644 --- a/kompendium-playground/src/main/kotlin/org/leafygreens/kompendium/playground/Spec.kt +++ b/kompendium-playground/src/main/kotlin/io/bkbn/kompendium/playground/Spec.kt @@ -1,11 +1,11 @@ -package org.leafygreens.kompendium.playground +package io.bkbn.kompendium.playground import java.net.URI -import org.leafygreens.kompendium.Kompendium -import org.leafygreens.kompendium.models.oas.OpenApiSpecInfo -import org.leafygreens.kompendium.models.oas.OpenApiSpecInfoContact -import org.leafygreens.kompendium.models.oas.OpenApiSpecInfoLicense -import org.leafygreens.kompendium.models.oas.OpenApiSpecServer +import io.bkbn.kompendium.Kompendium +import io.bkbn.kompendium.models.oas.OpenApiSpecInfo +import io.bkbn.kompendium.models.oas.OpenApiSpecInfoContact +import io.bkbn.kompendium.models.oas.OpenApiSpecInfoLicense +import io.bkbn.kompendium.models.oas.OpenApiSpecServer val oas = Kompendium.openApiSpec.copy( info = OpenApiSpecInfo( @@ -20,7 +20,7 @@ val oas = Kompendium.openApiSpec.copy( ), license = OpenApiSpecInfoLicense( name = "MIT", - url = URI("https://github.com/lg-backbone/kompendium/blob/main/LICENSE") + url = URI("https://github.com/bkbnio/kompendium/blob/main/LICENSE") ) ), servers = mutableListOf( diff --git a/kompendium-swagger-ui/build.gradle.kts b/kompendium-swagger-ui/build.gradle.kts index 25ac6f861..2df1af199 100644 --- a/kompendium-swagger-ui/build.gradle.kts +++ b/kompendium-swagger-ui/build.gradle.kts @@ -23,7 +23,7 @@ publishing { repositories { maven { name = "GithubPackages" - url = uri("https://maven.pkg.github.com/lg-backbone/kompendium") + url = uri("https://maven.pkg.github.com/bkbnio/kompendium") credentials { username = System.getenv("GITHUB_ACTOR") password = System.getenv("GITHUB_TOKEN") diff --git a/kompendium-swagger-ui/src/main/kotlin/org/leafygreens/kompendium/swagger/SwaggerUI.kt b/kompendium-swagger-ui/src/main/kotlin/io/bkbn/kompendium/swagger/SwaggerUI.kt similarity index 100% rename from kompendium-swagger-ui/src/main/kotlin/org/leafygreens/kompendium/swagger/SwaggerUI.kt rename to kompendium-swagger-ui/src/main/kotlin/io/bkbn/kompendium/swagger/SwaggerUI.kt