8000 Replace existing keywords? · Issue #391 · ajv-validator/ajv-keywords · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Replace existing keywords? #391
Open
@iainsproat

Description

@iainsproat

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0