Skip to content

Commit

Permalink
Fix base path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TharmiganK committed Dec 20, 2024
1 parent 827f2fa commit 6f9103a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -810,14 +810,14 @@ public static String getServiceDeclarationNode(Service service) {
if (Objects.nonNull(service.getServiceType()) && service.getServiceType().isEnabledWithValue()) {
builder.append(service.getServiceTypeName());
builder.append(" ");
if (Objects.nonNull(service.getBasePath()) && service.getBasePath().isEnabledWithValue()) {
builder.append(getValueString(service.getBasePath()));
builder.append(" ");
}
} else if (Objects.nonNull(service.getServiceContractTypeNameValue()) &&
}
if (Objects.nonNull(service.getServiceContractTypeNameValue()) &&
service.getServiceContractTypeNameValue().isEnabledWithValue()) {
builder.append(service.getServiceContractTypeName());
builder.append(" ");
} else if (Objects.nonNull(service.getBasePath()) && service.getBasePath().isEnabledWithValue()) {
builder.append(getValueString(service.getBasePath()));
builder.append(" ");
}
builder.append("on ");
if (Objects.nonNull(service.getListener()) && service.getListener().isEnabledWithValue()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,40 +96,40 @@
"optional": false,
"advanced": false,
"properties": {
"serviceTypeName": {
"spec": {
"metadata": {
"label": "Service Type Name",
"description": "The name of the service contract type generated from the OpenAPI specification"
"label": "OpenAPI Specification",
"description": "Provide an OpenAPI specification to generate the resources"
},
"enabled": true,
"editable": true,
"value": "",
"valueType": "EXPRESSION",
"valueType": "FILE_SELECT",
"valueTypeConstraint": "string",
"isType": false,
"placeholder": "",
"optional": false,
"optional": true,
"advanced": false,
"codedata": {
"type": "SERVICE_BASEPATH"
"type": "OPENAPI"
}
},
"spec": {
"serviceTypeName": {
"metadata": {
"label": "OpenAPI Specification",
"description": "Provide an OpenAPI specification to generate the resources"
"label": "Service Type Name",
"description": "The name of the service contract type generated from the OpenAPI specification"
},
"enabled": false,
"enabled": true,
"editable": true,
"value": "",
"valueType": "FILE_SELECT",
"valueType": "EXPRESSION",
"valueTypeConstraint": "string",
"isType": false,
"placeholder": "",
"optional": true,
"optional": false,
"advanced": false,
"codedata": {
"type": "OPENAPI"
"type": "SERVICE_BASEPATH"
}
}
}
Expand Down

0 comments on commit 6f9103a

Please sign in to comment.