Skip to content

Commit

Permalink
Add support for runner online status null (#11)
Browse files Browse the repository at this point in the history
* runner.online field is nullable

* regenerate client model

* revert null generator
  • Loading branch information
encX authored May 10, 2022
1 parent 31a0d5d commit 566f624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GitLabKit.Runner.Core/Models/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Runner
public bool Active { get; set; }

[JsonProperty("online")]
public bool Online { get; set; }
public bool? Online { get; set; }

[JsonProperty("contacted_at")]
public DateTime ContactedAt { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/clientside/src/api-client/generated/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export interface Runner {
* @type {boolean}
* @memberof Runner
*/
'online': boolean;
'online'?: boolean | null;
/**
*
* @type {string}
Expand Down

0 comments on commit 566f624

Please sign in to comment.