Joi validation

Job ID: 31055636

Budget: $10 – $30 CAD

I would like someone to teach me how can I validate an object with unknown keys with Joi.
I want this validation to be done specifically with Joi

Here is a data sample
{
'5520': {
name: 'string',
order: 0,
},
'8123': {
name: 'string',
order: 5,
},
'8219': {
name: 'string',
order: 1,
},
'10113': {
name: 'string',
order: 2,
},
'14538': {
name: 'string',
order: 6,
},
'15277': {
name: 'string',
order: 4,
},
'16723': {
name: 'string',
order: 3,
}

I would like to validate each one of those unknown keys to make sure they all contain name, order and a few other properties, they all must have the same properties.
Related categories: JavaScript Typescript