Refactor the UISP codegen to be touch-free, making it easier to patch the spec (to fix the litany of vendor-supplied bugs) and make a working library.
I found this useful while debugging why the uisp outages getOutages command failed to deserialize. See changes in patch-3-1644868976-outage.patch and patch-8-1644878967-conflicting-model-names-outages.patch. Before these patches were appled, the following command would fail:
❱ bin/nycmesh-tool uisp outages getOutages --count=1 --page=1 --inProgress|jq
2022/02/14 18:10:45 config file: /home/gabe/.nycmesh-tool.yaml
2022/02/14 18:10:45 binary release v0.4.2-3-ge965c9d, built Mon Feb 14 11:10:40 PM UTC 2022
Error: json: cannot unmarshal object into Go value of type models.Outages
2022/02/14 18:10:50 Error: json: cannot unmarshal object into Go value of type models.Outages
After building this branch, the following command will work correctly:
Refactor the UISP codegen to be touch-free, making it easier to patch the spec (to fix the litany of vendor-supplied bugs) and make a working library.
I found this useful while debugging why the
uisp outages getOutages
command failed to deserialize. See changes inpatch-3-1644868976-outage.patch
andpatch-8-1644878967-conflicting-model-names-outages.patch
. Before these patches were appled, the following command would fail:After building this branch, the following command will work correctly: