Closed pederhan closed 1 year ago
When calling endpoints that return ScheduleObj models, the value of the type field has been observed to sometimes be "Schedule". This is not a part of the official Harbor API spec:
type
"Schedule"
https://github.com/pederhan/harborapi/blob/1b1a25089b6040dca1057fa1fcd57f02bfc4e8dd/harborapi/models/_models.py#L656-L662
To rectify this, we have had to create a new Type enum with "Schedule" as a valid value:
Type
https://github.com/pederhan/harborapi/blob/1b1a25089b6040dca1057fa1fcd57f02bfc4e8dd/harborapi/models/models.py#L583-L591
This is cumbersome, as we need to override all models that reference the original Schedule, of which there are quite a few:
Schedule
https://github.com/pederhan/harborapi/blob/1b1a25089b6040dca1057fa1fcd57f02bfc4e8dd/harborapi/models/models.py#L594-L607
There is an active issue on this on the offical Harbor repo: https://github.com/goharbor/harbor/issues/18262
Fixed upstream
When calling endpoints that return ScheduleObj models, the value of the
type
field has been observed to sometimes be"Schedule"
. This is not a part of the official Harbor API spec:https://github.com/pederhan/harborapi/blob/1b1a25089b6040dca1057fa1fcd57f02bfc4e8dd/harborapi/models/_models.py#L656-L662
To rectify this, we have had to create a new
Type
enum with"Schedule"
as a valid value:https://github.com/pederhan/harborapi/blob/1b1a25089b6040dca1057fa1fcd57f02bfc4e8dd/harborapi/models/models.py#L583-L591
This is cumbersome, as we need to override all models that reference the original
Schedule
, of which there are quite a few:https://github.com/pederhan/harborapi/blob/1b1a25089b6040dca1057fa1fcd57f02bfc4e8dd/harborapi/models/models.py#L594-L607
There is an active issue on this on the offical Harbor repo: https://github.com/goharbor/harbor/issues/18262