module Velvet::Output

Defined in:

velvet/output.cr

Class Method Summary

Class Method Detail

def self.coerce(field_id : String, value : String, cast : Cast) : JSON::Any #

Coerce a raw string value to the correct JSON type based on cast


[View source]
def self.emit(result : Hash(String, JSON::Any)) #

[View source]
def self.validate!(value : JSON::Any, field : InputField) #

[View source]