module Obsctl::Config::ConfigSchema

Overview

Validates loaded config and returns safe warnings for non-fatal issues.

Defined in:

obsctl/config/config_schema.cr

Class Method Summary

Class Method Detail

def self.validate!(config : Config) : Nil #

Raises Domain::ConfigInvalid when config values would make runtime behavior ambiguous, unsafe, or impossible.


[View source]
def self.warnings(config : Config) : Array(String) #

Returns secret-safe warnings for valid configs that still deserve user attention, such as plaintext password storage.


[View source]