builder/generate library
Functions
-
buildDynamicVersionMap(
List< Map< rawSpecs) → Map<String, dynamic> >String, String> - Builds a map of base activity type -> highest versioned activity type by scanning all string values in the swagger JSON for ACTIVITY_TYPE_* patterns.
-
generateClientFromSwagger(
{required List< TFileInfo> fileList, required String targetPath}) → Future<void> - Generates a Dart HTTP client class from a Swagger specification.
-
getActivityTypeFromOperationId(
String operationId, Map< String, String> dynamicVersionMap) → String - Determines the activity type from operation ID. Checks the static VERSIONED_ACTIVITY_TYPES map first (explicit overrides), then falls back to the dynamically-detected highest version from the swagger, and finally falls back to the unversioned base name.