Open nguyen0096 opened 3 months ago
@nguyen0096 this isn't currently possible:
<= 3 characters
text is generated by the documentation tool based on the JSON Schema which has a field like "minimum": 3
within it. I don't think you can modify this easily but I'm not sure, take a look at https://github.com/stoplightio/elements. You can also consider different documentation tools, see https://huma.rocks/features/api-docs/#customizing-documentation
Currently, for example, I put tag
maxLength:"3"
, Huma will validate to input Body and also put a text in spec to indicate the constraint.I can add validation logic with
Resolve
method but is there anyway that I can:Resolve
method for all input models.<= 3 characters
as in the image, instead of putting it into description.Thanks! You guys created a great repository btw.