Skip to content

question: Is it possible to validate dynamic keys? #779

@rafaelluz-f

Description

@rafaelluz-f

I was trying to...
I'm wrapping an external api inside my NestJS api and start to face the problem when comes to validate a dynamic key. This external api expect that this key match a named row and then try to update.

The problem:
My JSON looks like:

"grid": [ { "dynamic-row-name": [ { //nestedObject } ] } ]

This is it possible to validate using class-validator?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions