Skip to content

[dep] Bump ajv-formats to 3.0.1#2124

Merged
Drarig29 merged 3 commits intomasterfrom
corentin.girard/dep-ajv-2
Feb 24, 2026
Merged

[dep] Bump ajv-formats to 3.0.1#2124
Drarig29 merged 3 commits intomasterfrom
corentin.girard/dep-ajv-2

Conversation

@Drarig29
Copy link
Contributor

@Drarig29 Drarig29 commented Feb 20, 2026

What and why?

This PR bumps ajv-formats to get latest version of ajv. Closes https://github.com/DataDog/datadog-ci/security/dependabot/88

How?

Run yarn up ajv-formats.

This major version is due to a breaking change related to time formats:

  • strictTime is no longer an option in addFormats()
  • time and date-time formats now require a timezone, so they became strict by default
  • iso-time and iso-date-time formats were added, with optional timezone

I added missing unit tests to ensure we don't break the current behavior.

  • In sbom we have validateFormats: false, so date-time values without timezone (Z or +XXX) are ignored.
  • In sarif we don't have it, so this PR adds validateFormats: false to avoid a breaking change when bumping ajv-formats so we keep ignoring date-time values without timezone.

While we could change "format": "date-time" to "format": "iso-date-time" in the schema files, this would diverge from official schemas.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

@Drarig29 Drarig29 added the dependencies Pull requests that update a dependency file label Feb 20, 2026
@Drarig29 Drarig29 force-pushed the corentin.girard/dep-ajv-2 branch from 7d119b9 to 6b4b2a3 Compare February 20, 2026 17:29
@Drarig29 Drarig29 force-pushed the corentin.girard/dep-ajv-2 branch from 6b4b2a3 to 4eb3aec Compare February 20, 2026 17:39
@datadog-official
Copy link

datadog-official bot commented Feb 20, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 3c91ea3 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@Drarig29 Drarig29 marked this pull request as ready for review February 20, 2026 18:20
@Drarig29 Drarig29 requested review from a team as code owners February 20, 2026 18:20
@Drarig29 Drarig29 merged commit f240dd0 into master Feb 24, 2026
26 checks passed
@Drarig29 Drarig29 deleted the corentin.girard/dep-ajv-2 branch February 24, 2026 10:05
@vishal-joshi-datadog vishal-joshi-datadog mentioned this pull request Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants