ui5-migration icon indicating copy to clipboard operation
ui5-migration copied to clipboard

Target version 1.60.0 not found for api.json

Open tobiasso85 opened this issue 6 years ago • 1 comments

Problem

the parameter target-version is used to download the api information for resolving globals, e.g. sap.m.Label therefore the API version must match the one available on the https://sapui5.hana.ondemand.com/

ui5-migration analyze --target-version="1.60.0"
ui5-migration analyze --target-version="1.60.22"

produces different output

because

https://sapui5.hana.ondemand.com/1.60.22/ --> works
https://sapui5.hana.ondemand.com/1.60.0/ --> 404 Not Found

Proposal

throw an error and display it in the console.

1.60.0 was not officially released

E.g. could use: https://sapui5.hana.ondemand.com/versionoverview.json

tobiasso85 avatar Jan 30 '20 15:01 tobiasso85

Possible solution

An idea would be to create a method init in each task and this ensures all parameters are met to initiate the task.

For the ones which depend on the targetVersion it will then throw an error!

tobiasso85 avatar Jun 24 '20 14:06 tobiasso85