Class: Html2rss::Config::Schema::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/html2rss/config/schema.rb

Overview

Orchestrates schema assembly from runtime validator contracts plus client-facing overlays.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.callHash{String => Object}

Returns fully assembled JSON schema hash.

Returns:

  • (Hash{String => Object})

    fully assembled JSON schema hash



54
55
56
# File 'lib/html2rss/config/schema.rb', line 54

def call
  new.call
end

Instance Method Details

#callHash{String => Object}

Returns fully assembled JSON schema hash.

Returns:

  • (Hash{String => Object})

    fully assembled JSON schema hash



60
61
62
63
64
65
# File 'lib/html2rss/config/schema.rb', line 60

def call
  schema = validator_schema
  apply_top_level(schema)
  assign_properties(schema.fetch(:properties))
  DeepStringifier.call(schema)
end