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

chore: move domain #77

Merged
merged 27 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f5430a0
feat: Implement message model annotations (#43)
lorenz-scalable Mar 2, 2023
5a42e58
feat: Process message and schema annotations (#44)
lorenz-scalable Mar 20, 2023
b0a9497
feat: Channel annotation processing (#45)
lorenz-scalable Apr 9, 2023
3ea409b
refactor: Annotation mapping (#47)
lorenzsimon Apr 9, 2023
04d6162
feat: Add Kotlin module to model resolver (#48)
lorenzsimon Apr 10, 2023
031560a
feat: Bind channels to annotation components (#49)
lorenzsimon Apr 10, 2023
657ab2b
Merge branch 'master' into dev
lorenzsimon Apr 10, 2023
b369d6e
chore - Format
lorenzsimon Apr 10, 2023
397f77c
Merge branch 'master' into dev
lorenzsimon Oct 1, 2023
998c8a0
chore: Add Spring Boot example application (#63)
lorenzsimon Oct 1, 2023
b7fe8c0
Merge branch 'master' into dev
lorenzsimon Oct 21, 2023
3bad44b
chore: Bump dependencies (#65)
lorenzsimon Nov 23, 2023
049793e
Merge branch 'master' into dev
lorenzsimon Nov 25, 2023
8f462db
chore: Refactor data objects (#67)
lorenzsimon Nov 25, 2023
d22f003
chore: Revert
lorenzsimon Nov 25, 2023
352aa4d
Merge branch 'master' into dev
lorenzsimon Dec 2, 2023
3d2636b
release: 3.0.3
lorenzsimon Dec 2, 2023
36720b9
Merge branch 'master' into dev
lorenzsimon Dec 2, 2023
f1c1d00
pre-release: 3.0.4
lorenzsimon Dec 2, 2023
ecbc202
feat: Add Ktor integration (#72)
lorenzsimon Aug 27, 2024
c6a8463
Merge branch 'refs/heads/master' into dev
lorenzsimon Aug 27, 2024
cfe2a08
Merge branch 'refs/heads/master' into dev
lorenzsimon Aug 28, 2024
c5c810c
Move to new domain namespace
lorenzsimon Aug 28, 2024
94abcdd
Fix kts example usage
lorenzsimon Aug 28, 2024
3b1fbef
Move domain
lorenzsimon Aug 28, 2024
74a1a80
Merge branch 'master' into dev
lorenzsimon Dec 14, 2024
e304489
Bump dependencies
lorenzsimon Dec 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![Logo](.github/assets/kotlin_asyncapi_logo.png)
[![Apache License 2](https://img.shields.io/badge/license-ASF2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.txt)
[![Build status](https://github.com/OpenFolder/kotlin-asyncapi/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/OpenFolder/kotlin-asyncapi/actions/workflows/build.yml)
[![Qodana](https://github.com/OpenFolder/kotlin-asyncapi/actions/workflows/qodana.yml/badge.svg?branch=master)](https://openfolder.github.io/kotlin-asyncapi/qodana/report)
[![Maven Central status](https://img.shields.io/maven-central/v/org.openfolder/kotlin-asyncapi-parent.svg)](https://search.maven.org/#search%7Cga%7C1%7Corg.openfolder%20kotlin-asyncapi)
[![Build status](https://github.com/asyncapi/kotlin-asyncapi/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/asyncapi/kotlin-asyncapi/actions/workflows/build.yml)
[![Qodana](https://github.com/asyncapi/kotlin-asyncapi/actions/workflows/qodana.yml/badge.svg?branch=master)](https://asyncapi.github.io/kotlin-asyncapi/qodana/report)
[![Maven Central status](https://img.shields.io/maven-central/v/com.asyncapi/kotlin-asyncapi-parent.svg)](https://search.maven.org/#search%7Cga%7C1%7Ccom.asyncapi%20kotlin-asyncapi)

> [!NOTE]
> Spring Framework 6 / Spring Boot 3 is supported since `6.0.14` / `3.1.6`
Expand Down Expand Up @@ -165,7 +165,7 @@ data class ChatMessage(
```
```xml
<dependency>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-spring-web</artifactId>
<version>${kotlin-asyncapi.version}</version>
</dependency>
Expand Down Expand Up @@ -225,7 +225,7 @@ data class ChatMessage(
```
```xml
<dependency>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-ktor</artifactId>
<version>${kotlin-asyncapi.version}</version>
</dependency>
Expand Down Expand Up @@ -275,7 +275,7 @@ servers {
```
```xml
<plugin>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-maven-plugin</artifactId>
<version>${kotlin-asyncapi.version}</version>
<executions>
Expand Down
2 changes: 1 addition & 1 deletion kotlin-asyncapi-annotation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-parent</artifactId>
<version>3.0.4-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation
package com.asyncapi.kotlinasyncapi.annotation

@Target(AnnotationTarget.ANNOTATION_CLASS)
annotation class AsyncApiAnnotation
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation
package com.asyncapi.kotlinasyncapi.annotation

annotation class CorrelationID(
val isDefault: kotlin.Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation
package com.asyncapi.kotlinasyncapi.annotation

annotation class ExternalDocumentation(
val isDefault: kotlin.Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation
package com.asyncapi.kotlinasyncapi.annotation

annotation class Int(
val value: kotlin.Int = 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation
package com.asyncapi.kotlinasyncapi.annotation

import kotlin.reflect.KClass

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation
package com.asyncapi.kotlinasyncapi.annotation

annotation class Tag(
val isDefault: kotlin.Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.AsyncApiAnnotation
import com.asyncapi.kotlinasyncapi.annotation.AsyncApiAnnotation

@Target(
AnnotationTarget.CLASS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.Boolean
import org.openfolder.kotlinasyncapi.annotation.Int
import org.openfolder.kotlinasyncapi.annotation.Schema
import com.asyncapi.kotlinasyncapi.annotation.Boolean
import com.asyncapi.kotlinasyncapi.annotation.Int
import com.asyncapi.kotlinasyncapi.annotation.Schema

annotation class ChannelBindings(
val isDefault: kotlin.Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.AsyncApiAnnotation
import org.openfolder.kotlinasyncapi.annotation.CorrelationID
import org.openfolder.kotlinasyncapi.annotation.ExternalDocumentation
import org.openfolder.kotlinasyncapi.annotation.Schema
import org.openfolder.kotlinasyncapi.annotation.Tag
import com.asyncapi.kotlinasyncapi.annotation.AsyncApiAnnotation
import com.asyncapi.kotlinasyncapi.annotation.CorrelationID
import com.asyncapi.kotlinasyncapi.annotation.ExternalDocumentation
import com.asyncapi.kotlinasyncapi.annotation.Schema
import com.asyncapi.kotlinasyncapi.annotation.Tag
import kotlin.reflect.KClass

@Target(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.Int
import org.openfolder.kotlinasyncapi.annotation.Schema
import com.asyncapi.kotlinasyncapi.annotation.Int
import com.asyncapi.kotlinasyncapi.annotation.Schema

annotation class MessageBindings(
val isDefault: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

annotation class MessageExample(
val isDefault: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.CorrelationID
import org.openfolder.kotlinasyncapi.annotation.ExternalDocumentation
import org.openfolder.kotlinasyncapi.annotation.Schema
import org.openfolder.kotlinasyncapi.annotation.Tag
import com.asyncapi.kotlinasyncapi.annotation.CorrelationID
import com.asyncapi.kotlinasyncapi.annotation.ExternalDocumentation
import com.asyncapi.kotlinasyncapi.annotation.Schema
import com.asyncapi.kotlinasyncapi.annotation.Tag

annotation class MessageTrait(
val isDefault: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.AsyncApiAnnotation
import org.openfolder.kotlinasyncapi.annotation.ExternalDocumentation
import org.openfolder.kotlinasyncapi.annotation.Tag
import com.asyncapi.kotlinasyncapi.annotation.AsyncApiAnnotation
import com.asyncapi.kotlinasyncapi.annotation.ExternalDocumentation
import com.asyncapi.kotlinasyncapi.annotation.Tag

@Target(
AnnotationTarget.FUNCTION,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.Boolean
import org.openfolder.kotlinasyncapi.annotation.Int
import org.openfolder.kotlinasyncapi.annotation.Schema
import com.asyncapi.kotlinasyncapi.annotation.Boolean
import com.asyncapi.kotlinasyncapi.annotation.Int
import com.asyncapi.kotlinasyncapi.annotation.Schema

annotation class OperationBindings(
val isDefault: kotlin.Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.ExternalDocumentation
import org.openfolder.kotlinasyncapi.annotation.Tag
import com.asyncapi.kotlinasyncapi.annotation.ExternalDocumentation
import com.asyncapi.kotlinasyncapi.annotation.Tag

annotation class OperationTrait(
val isDefault: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

import org.openfolder.kotlinasyncapi.annotation.Schema
import com.asyncapi.kotlinasyncapi.annotation.Schema

annotation class Parameter(
val value: String = "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.annotation.channel
package com.asyncapi.kotlinasyncapi.annotation.channel

annotation class SecurityRequirement(
val key: String = "",
Expand Down
8 changes: 4 additions & 4 deletions kotlin-asyncapi-context/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-parent</artifactId>
<version>3.0.4-SNAPSHOT</version>
</parent>
Expand All @@ -16,15 +16,15 @@

<dependencies>
<dependency>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-core</artifactId>
</dependency>
<dependency>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-script</artifactId>
</dependency>
<dependency>
<groupId>org.openfolder</groupId>
<groupId>com.asyncapi</groupId>
<artifactId>kotlin-asyncapi-annotation</artifactId>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.asyncapi.kotlinasyncapi.context

import com.asyncapi.kotlinasyncapi.model.AsyncApi

interface AsyncApiContextProvider {

val asyncApi: AsyncApi?
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.openfolder.kotlinasyncapi.context
package com.asyncapi.kotlinasyncapi.context

import org.openfolder.kotlinasyncapi.model.AsyncApi
import com.asyncapi.kotlinasyncapi.model.AsyncApi

class PackageInfoProvider(
private val applicationPackage: Package?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.openfolder.kotlinasyncapi.context
package com.asyncapi.kotlinasyncapi.context

import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.ObjectMapper
import org.openfolder.kotlinasyncapi.model.AsyncApi
import com.asyncapi.kotlinasyncapi.model.AsyncApi

class ResourceProvider(path: String) : AsyncApiContextProvider {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
package org.openfolder.kotlinasyncapi.context.annotation
package com.asyncapi.kotlinasyncapi.context.annotation

import org.openfolder.kotlinasyncapi.annotation.AsyncApiAnnotation
import org.openfolder.kotlinasyncapi.annotation.Schema
import org.openfolder.kotlinasyncapi.annotation.channel.Channel
import org.openfolder.kotlinasyncapi.annotation.channel.Message
import org.openfolder.kotlinasyncapi.context.AsyncApiContextProvider
import org.openfolder.kotlinasyncapi.context.annotation.processor.AnnotationProcessor
import org.openfolder.kotlinasyncapi.model.AsyncApi
import org.openfolder.kotlinasyncapi.model.ReferencableCorrelationIDsMap
import org.openfolder.kotlinasyncapi.model.ReferencableSchemasMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableChannelBindingsMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableChannelsMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableMessageBindingsMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableMessageTraitsMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableMessagesMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableOperationBindingsMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableOperationTraitsMap
import org.openfolder.kotlinasyncapi.model.channel.ReferencableParametersMap
import org.openfolder.kotlinasyncapi.model.component.Components
import org.openfolder.kotlinasyncapi.model.component.ReferencableSecuritySchemasMap
import org.openfolder.kotlinasyncapi.model.server.ReferencableServerBindingsMap
import org.openfolder.kotlinasyncapi.model.server.ReferencableServerVariablesMap
import org.openfolder.kotlinasyncapi.model.server.ReferencableServersMap
import com.asyncapi.kotlinasyncapi.annotation.AsyncApiAnnotation
import com.asyncapi.kotlinasyncapi.annotation.Schema
import com.asyncapi.kotlinasyncapi.annotation.channel.Channel
import com.asyncapi.kotlinasyncapi.annotation.channel.Message
import com.asyncapi.kotlinasyncapi.context.AsyncApiContextProvider
import com.asyncapi.kotlinasyncapi.context.annotation.processor.AnnotationProcessor
import com.asyncapi.kotlinasyncapi.model.AsyncApi
import com.asyncapi.kotlinasyncapi.model.ReferencableCorrelationIDsMap
import com.asyncapi.kotlinasyncapi.model.ReferencableSchemasMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableChannelBindingsMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableChannelsMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableMessageBindingsMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableMessageTraitsMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableMessagesMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableOperationBindingsMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableOperationTraitsMap
import com.asyncapi.kotlinasyncapi.model.channel.ReferencableParametersMap
import com.asyncapi.kotlinasyncapi.model.component.Components
import com.asyncapi.kotlinasyncapi.model.component.ReferencableSecuritySchemasMap
import com.asyncapi.kotlinasyncapi.model.server.ReferencableServerBindingsMap
import com.asyncapi.kotlinasyncapi.model.server.ReferencableServerVariablesMap
import com.asyncapi.kotlinasyncapi.model.server.ReferencableServersMap
import kotlin.reflect.KClass
import kotlin.reflect.full.findAnnotation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.context.annotation
package com.asyncapi.kotlinasyncapi.context.annotation

import io.github.classgraph.ClassGraph
import kotlin.reflect.KClass
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.asyncapi.kotlinasyncapi.context.annotation.processor

import com.asyncapi.kotlinasyncapi.model.component.Components

interface AnnotationProcessor<T, U> {
fun process(annotation: T, context: U): Components
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.openfolder.kotlinasyncapi.context.annotation.processor
package com.asyncapi.kotlinasyncapi.context.annotation.processor

import org.openfolder.kotlinasyncapi.annotation.channel.Channel
import org.openfolder.kotlinasyncapi.annotation.channel.Publish
import org.openfolder.kotlinasyncapi.annotation.channel.Subscribe
import org.openfolder.kotlinasyncapi.model.component.Components
import com.asyncapi.kotlinasyncapi.annotation.channel.Channel
import com.asyncapi.kotlinasyncapi.annotation.channel.Publish
import com.asyncapi.kotlinasyncapi.annotation.channel.Subscribe
import com.asyncapi.kotlinasyncapi.model.component.Components
import kotlin.reflect.KClass
import kotlin.reflect.full.findAnnotation
import kotlin.reflect.full.functions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openfolder.kotlinasyncapi.context.annotation.processor
package com.asyncapi.kotlinasyncapi.context.annotation.processor

import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import io.swagger.v3.core.converter.ModelConverters
Expand Down
Loading
Loading