1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

[Hexpm] Fix badges for pre-release only versions (#10112)

* test: make existing test fail

* fix: allow null values for latest_stable_version
This commit is contained in:
Pierre Cavin 2024-04-24 19:06:36 +02:00 committed by GitHub
parent d6dde3f135
commit edae807362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const hexSchema = Joi.object({
meta: Joi.object({
licenses: Joi.array().required(),
}).required(),
latest_stable_version: Joi.string(),
latest_stable_version: Joi.string().allow(null),
latest_version: Joi.string().required(),
}).required()

View File

@ -50,6 +50,7 @@ t.create('version (no stable version)')
.get('/api/packages/prima_opentelemetry_ex')
.reply(200, {
downloads: { all: 100 },
latest_stable_version: null,
latest_version: '1.0.0-rc.3',
meta: { licenses: ['MIT'] },
}),