exports.createProductSizeSchema = {
tags: ["Product Size"],
summary: "This API is used to create Product Sizes",
description: "productSize should be Unique",
headers: { $ref: "headers#" }
}
But while generating the definition, enum value is not coming up. PFB the screenshot
Could you please let me know what I am doing wrong here?
I am using the below versions
fastify version: 3.29.0 @fastify/swagger: 6.1.1
I have defined my schema for the headers like below.
And added in one of my request header like
But while generating the definition, enum value is not coming up. PFB the screenshot
Could you please let me know what I am doing wrong here?