Redocly/redoc

Hiding regex expressions used for validation in Swagger and Redoc

开放

#668 创建于 2018年10月8日

 (7 条评论) (0 个反应) (0 位负责人)TypeScript (2,272 个派生)batch import
Type: Enhancementhelp wanted

仓库指标

星标
 (21,877 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

When we use a regex as a validator in swagger the regex shows up in our redoc documentation. We don't believe that our users will understand these random regular expressions in the documentation. Is there a way to hide the regular expression from the documentation. Or possibly define the validator as an object. I'm doubting that redoc would print an entire object to the documentation (if an object was used). A small example would be great... TY

贡献者指南