Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion regenerate-openapi-connectors/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public function main() returns error? {

public function getGeneratedModuleList() returns Module[]|error {
List moduleList = check (check io:fileReadJson(MODULE_LIST_JSON)).fromJsonWithType();
return moduleList.generated_connectors;
return from Module module in moduleList.generated_connectors
where module.is_multiple_connectors == false
select module;
}

isolated function waitForRegeneration(ProcessingModule[] processingModules) returns error? {
Expand Down
14 changes: 3 additions & 11 deletions regenerate-openapi-connectors/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,15 @@
// specific language governing permissions and limitations
// under the License.

type List record {|
Module[] library_modules;
Module[] extended_modules;
Module[] handwritten_connectors;
Module[] driver_modules;
type List record {
Module[] generated_connectors;
Module[] tools;
|};
};

type Module record {
string name;
string module_version;
int level;
string default_branch;
boolean release;
string version_key;
boolean inProgress = false;
boolean is_multiple_connectors = false;
};

type ProcessingModule record {|
Expand Down