Skip to content

Exposing Validation Metadata #27

Description

@brizzbuzz

Hey, I am working on an OpenAPI spec generator for Ktor https://github.com/bkbnio/kompendium and would love to build in Konform validation, but I am running into a problem. A method for generating validation metadata is eluding me.

Because all implementations of Validation are internal, and afaik the actual constraints don't get exposed to the end user, it feels like I am in a bit of a bind as far as pulling that info goes.

So I have a couple questions

  1. Am I just missing something? Is there an easy way to pull constraint metadata for a declared validation
  2. If not, are there any major concerns with exposing the list of constraints applied to a validation?

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