Rules
- •Allow to edit files.
- •Deny committing any change to git repo.
Update Schema
Execute this workflow for each item in data from fileMirroringToS3.ts.
Workflow
- •Read
fileMirroringToS3.tsand locate thedataarray URLs. - •Fetch each CSV file from its URL.
- •Parse CSV with headers and inspect representative rows for value types.
- •For
charge_station_list:- •Update
SourceFreeChargingItemSchemainSourceModels.ts. - •Update
mapToFreeChargingIteminSourceModels.ts.
- •Update
- •For
hotspotlist:- •Update
SourceFreeWifiItemSchemainSourceModels.ts. - •Update
mapToFreeWifiIteminSourceModels.ts.
- •Update
- •Keep schema and mapper aligned:
- •Every mapped source field must exist in the source schema.
- •Coordinate fields must map to numeric target fields.
- •Keep existing style unless data forces change:
- •Preserve TypeBox object schema structure and
additionalProperties: false. - •Preserve mapper output contracts (
IFreeChargingItem,IFreeWifiItem).
- •Preserve TypeBox object schema structure and
Output Requirements
- •Edit only files needed for schema and mapper updates.
- •Report:
- •Which source URLs were processed.
- •Which schema fields changed.
- •Which mapping fields changed.