Skip to content

Commit

Permalink
refactor(dotnet-version): Fix schema for dates (#21367)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored Apr 6, 2023
1 parent db8a377 commit 46723eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/modules/datasource/dotnet-version/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const SupportPhase = z.union([
const ReleaseIndex = z.object({
'channel-version': z.string(),
'latest-release': z.string(),
'latest-release-date': z.date(),
'latest-release-date': z.string(),
security: z.boolean(),
'latest-runtime': z.string(),
'latest-sdk': z.string(),
product: Product,
'support-phase': SupportPhase,
'eol-date': z.date().nullable(),
'eol-date': z.string().nullable(),
'releases.json': z.string(),
});
export const DotnetReleasesIndexSchema = z.object({
Expand All @@ -30,7 +30,7 @@ const ReleaseDetails = z.object({
'version-display': z.string(),
});
const ReleaseSchema = z.object({
'release-date': z.date(),
'release-date': z.string(),
'release-version': z.string(),
security: z.boolean(),
'release-notes': z.string(),
Expand All @@ -40,7 +40,7 @@ const ReleaseSchema = z.object({
export const DotnetReleasesSchema = z.object({
'channel-version': z.string(),
'latest-release': z.string(),
'latest-release-date': z.date(),
'latest-release-date': z.string(),
'latest-runtime': z.string(),
'latest-sdk': z.string(),
'support-phase': SupportPhase,
Expand Down

0 comments on commit 46723eb

Please sign in to comment.