convex-schema-parser-0.1.7.0: A type-safe client generator for Convex for both Rust and Python.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Validator

Synopsis

Documentation

class Validator (v :: Type -> Type) where Source #

A typeclass for language-specific code validators.

Methods

setup :: v () Source #

Sets up the validation environment (e.g., creates a sandbox project) and returns a handle to it. This function is idempotent.

validate :: String -> v (Maybe String) Source #

Validates a string of generated code using the provided handle. Returns the potentially formatted and checked code.

newtype ValidationConfig Source #

Configuration for the validation setup process.

Constructors

ValidationConfig 

Fields

  • validationDir :: FilePath

    The root directory where validator projects will be created. e.g., "~.configconvex-schema-parser"