Bundle validator
A tiny standalone .NET console app (net8.0, no external packages) that checks an intake accelerator bundle folder.
What it checks
manifest.jsonparses and has the required top-level properties.source.storageType/source.fileFormatare valid enum values.- The
samplePayload.fileexists on disk. - The
targethas the fields itskindrequires (customServiceorodataEntity). mapping.jsonparses; itstargetKindandtargetRefagree with the manifest target.- Every mapping line has a
targetand at least one ofsource/const/transform.
When an activation block is present (see Activation):
activation.parametersis an array, and each parameter haskey,label,scope,dataTypeand a booleanrequired.keyis camelCase and unique within the bundle;scopeanddataTypeare valid enum values.- A
secret(orsecretRef) parameter ships nodefault- a default credential in a published bundle is a structural error, not a style preference. - Every
batching.provisioningRequiredentry has a matchingactivation.parameters[].key, so the older field cannot drift from the newer one. - Every
__token__placeholder intransform.liquidhas a matching parameterkey, so the bundle cannot contain a blank nobody is asked to fill.
It does not connect to an AOS - target class/entity/field existence is verified by the authoring process against the AOT, not by this tool.
Build & run
dotnet build MGCLatticeIntakeBundleValidator.sln -c Release
dotnet run -c Release -- ../../bundles/vendor-invoice-intake ../../bundles/sales-order-intake \
../../bundles/asn-product-receipt-intake \
../../bundles/customer-payment-intake \
../../bundles/opportunity-intake
Exit code 0 = all valid, 1 = errors, 2 = bad invocation.