The description I'm defining for an Arr is missing from the generated schema.
I'm defining my request body like this:
static schema = {
operationId: `make-${ShutTheBoxGame.id}-move`,
tags: TAGS,
summary: 'Make a move in a game of Shut The Box.',
parameters: IdParams,
requestBody: {
gameId: new Uuid({
description: 'The ID of the game.',
required: true,
}),
numbersToFlip: new Arr(
new Num(),
{
description: 'An array of numbers the player wants to put down. Not required for a new game. If specified, gameId must be specified as well.',
required: true,
}),
},
responses: Responses,
}
Note the description defined for numbersToFlip above in the params. This does not appear in the resulting schema:
The description I'm defining for an Arr is missing from the generated schema.
I'm defining my request body like this:
Note the
description
defined fornumbersToFlip
above in the params. This does not appear in the resulting schema:Is this expected behavior? Am I defining the description correctly? If I'm reading the source right, perhaps
getValue
in theArr
class needs to merge in the value from its parentBaseParameters
? https://github.com/cloudflare/itty-router-openapi/blob/main/src/parameters.ts#L72