Skip to content

Commit

Permalink
fix(datasource/galaxy): loosen schema (#25712)
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor authored Nov 13, 2023
1 parent 4c409f1 commit e0ade37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/modules/datasource/galaxy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ export class GalaxyDatasource extends Datasource {
}

result.releases = versions.map(
(version: { name: string; created: string }) => {
(version: { name: string; created?: string }) => {
const release: Release = {
version: version.name,
releaseTimestamp: version.created,
};

if (is.nonEmptyString(version.created)) {
release.releaseTimestamp = version.created;
}
return release;
},
);
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/galaxy/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const GalaxyV1 = z.object({
versions: z.array(
z.object({
name: z.string(),
created: z.string(),
created: z.string().optional(),
}),
),
}),
Expand Down

0 comments on commit e0ade37

Please sign in to comment.