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

Add New Service Designer APIs #528

Merged
merged 28 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c2f5a42
Add initial files
TharmiganK Dec 12, 2024
4ee7329
Merge remote-tracking branch 'origin/main' into service-model
TharmiganK Dec 13, 2024
1c44b2f
Fix check style issues
TharmiganK Dec 16, 2024
37b5f8e
Merge remote-tracking branch 'origin/main' into service-model
TharmiganK Dec 16, 2024
eaf5173
Add edit APIs
TharmiganK Dec 16, 2024
672c132
Update APIs
TharmiganK Dec 17, 2024
85575b8
Merge remote-tracking branch 'origin/main' into service-model
TharmiganK Dec 18, 2024
72a55b6
Add OpenAPI gen support
TharmiganK Dec 18, 2024
dc91568
Update edit APIs
TharmiganK Dec 19, 2024
a0c7ae5
Add support for mapping HTTP responses
TharmiganK Dec 19, 2024
8eb097c
Fix getting type name
TharmiganK Dec 19, 2024
1a4f197
Remove old tests
TharmiganK Dec 19, 2024
b23831b
Update listener models
TharmiganK Dec 19, 2024
b71fbf4
Disable failing test cases
TharmiganK Dec 19, 2024
827f2fa
Refactor update APIs
TharmiganK Dec 19, 2024
6f9103a
Fix base path issue
TharmiganK Dec 20, 2024
39df8a1
Add file and ftp models
TharmiganK Jan 2, 2025
9dcb1d4
Fix issues with the edit APIs
TharmiganK Jan 6, 2025
3796f03
Add add-new property to the listener
TharmiganK Jan 6, 2025
b6bee14
Fix missing listener code-data
TharmiganK Jan 8, 2025
4c085bb
Add default value support
TharmiganK Jan 8, 2025
03c1491
Add status code response creation support
TharmiganK Jan 9, 2025
5a9a265
Merge remote-tracking branch 'origin/main' into service-model
TharmiganK Jan 9, 2025
4322cc6
Add response type support
TharmiganK Jan 10, 2025
b339ca8
Fix check style issue
TharmiganK Jan 10, 2025
1f42fea
Address review suggestions
TharmiganK Jan 10, 2025
a9c101f
Remove unused test file
TharmiganK Jan 10, 2025
5045273
Disable test case
TharmiganK Jan 10, 2025
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
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ def artifactLibParent = file("$project.rootDir/build/architecture-model-generato
def artifactGraphqlLibParent = file("$project.rootDir/build/graphql-model-generator/")
def artifactSequenceLibParent = file("$project.rootDir/build/sequence-model-generator/")
def artifactFlowLibParent = file("$project.rootDir/build/flow-model-generator/")
def artifactTriggerLibParent = file("$project.rootDir/build/trigger-model-generator/")
def artifactServiceLibParent = file("$project.rootDir/build/service-model-generator/")
def targetArchModelGeneratorCore = file("$project.rootDir/architecture-model-generator/modules/architecture-model-generator-core/build/libs/architecture-model-generator-core-${project.version}.jar")
def targetArchModelGeneratorPlugin = file("$project.rootDir/architecture-model-generator/modules/architecture-model-generator-plugin/build/libs/architecture-model-generator-plugin-${project.version}.jar")
def targetArchModelGeneratorLSExt = file("$project.rootDir/architecture-model-generator/modules/architecture-model-generator-ls-extension/build/libs/architecture-model-generator-ls-extension-${project.version}.jar")
def targetGraphqlModelGeneratorCore = file("$project.rootDir/graphql-model-generator/modules/graphql-model-generator-core/build/libs/graphql-model-generator-core-${project.version}.jar")
def targetGraphqlModelGeneratorLSExt = file("$project.rootDir/graphql-model-generator/modules/graphql-model-generator-ls-extension/build/libs/graphql-model-generator-ls-extension-${project.version}.jar")
def targetFlowModelGeneratorCore = file("$project.rootDir/flow-model-generator/modules/flow-model-generator-core/build/libs/flow-model-generator-core-${project.version}.jar")
def targetFlowModelGeneratorLSExt = file("$project.rootDir/flow-model-generator/modules/flow-model-generator-ls-extension/build/libs/flow-model-generator-ls-extension-${project.version}.jar")
def targetTriggerModelGeneratorLSExt = file("$project.rootDir/trigger-model-generator/modules/trigger-model-generator-ls-extension/build/libs/trigger-model-generator-ls-extension-${project.version}.jar")
def targetServiceModelGeneratorLSExt = file("$project.rootDir/service-model-generator/modules/service-model-generator-ls-extension/build/libs/service-model-generator-ls-extension-${project.version}.jar")
def targetSequenceDiagramGeneratorCore = file("$project.rootDir/sequence-model-generator/modules/sequence-model-generator-core/build/libs/sequence-model-generator-core-${project.version}.jar")
def targetSequenceDiagramGeneratorLSExt = file("$project.rootDir/sequence-model-generator/modules/sequence-model-generator-ls-extension/build/libs/sequence-model-generator-ls-extension-${project.version}.jar")

Expand All @@ -133,7 +133,7 @@ task copyArtifactZip {
dependsOn(":generatePomFileForMavenJavaPublication")
dependsOn(":flow-model-generator:flow-model-generator-core:build")
dependsOn(":flow-model-generator:flow-model-generator-ls-extension:build")
dependsOn(":trigger-model-generator:trigger-model-generator-ls-extension:build")
dependsOn(":service-model-generator:service-model-generator-ls-extension:build")
dependsOn(":sequence-model-generator:sequence-model-generator-core:build")
dependsOn(":sequence-model-generator:sequence-model-generator-ls-extension:build")
inputs.dir file(project.rootDir)
Expand Down Expand Up @@ -175,8 +175,8 @@ task copyArtifactZip {
into file("$artifactFlowLibParent/ls-libs")
}
copy {
from targetTriggerModelGeneratorLSExt
into file("$artifactTriggerLibParent/ls-libs")
from targetServiceModelGeneratorLSExt
into file("$artifactServiceLibParent/ls-libs")
}
}
outputs.dir artifactLibParent
Expand Down Expand Up @@ -243,8 +243,8 @@ task buildFlow {
dependsOn(":flow-model-generator:flow-model-generator-ls-extension:build")
}

task buildTrigger {
dependsOn(":trigger-model-generator:trigger-model-generator-ls-extension:build")
task buildService {
dependsOn(":service-model-generator:service-model-generator-ls-extension:build")
}

task buildDesign {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apply from: "$rootDir/gradle/javaProject.gradle"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "java"

description = 'LS extension for trigger model generation'
description = 'LS extension for service model generation'

configurations.all {
resolutionStrategy.preferProjectModules()
Expand Down Expand Up @@ -50,6 +50,12 @@ dependencies {
transitive = false
}
implementation "io.ballerina.openapi:core:${openAPICoreVersion}"
implementation("io.swagger.parser.v3:swagger-parser:${swaggerParserVersion}") {
exclude group: "io.swagger", module: "swagger-compat-spec-parser"
exclude group: "org.slf4j", module: "slf4j-ext"
exclude group: "javax.validation", module: "validation-api"
}
implementation "io.swagger.core.v3:swagger-models"
}

def balDistribution = file("$project.buildDir/extracted-distribution/jballerina-tools-${ballerinaLangVersion}")
Expand Down Expand Up @@ -108,7 +114,7 @@ test {
}
}

ext.moduleName = 'io.ballerina.triggermodelgenerator.extension'
ext.moduleName = 'io.ballerina.servicemodelgenerator.extension'
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependsOn configurations.dist
Expand Down
Loading
Loading