ajv-validator / ajv-validator/ajv-keywords

Replace existing keywords?

オープン
#391 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
257
フォーク
51
PR マージ指標
30日以内にマージされた PR はありません

説明

I have forked this repository and defined a new keyword `secret`, which transforms the data into a redacted string. e.g. `apiKey123` is transformed into `******`.

Ideally I would like to not have to define a custom keyword, `secret`, and instead use the existing keyword `writeOnly` to trigger this same behaviour.

If I attempt to define behaviour for the keyword, I receive the following error message: `Keyword writeOnly is already defined`.

Is it possible to monkey patch (or similar) the existing behaviour for the `writeOnly` keyword?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。