Module: DiasporaFederation::Schemas

Defined in:
lib/diaspora_federation/schemas.rb

Overview

A helper class to access the JSON schema.

Constant Summary collapse

FEDERATION_ENTITIES_URI =

federation_entities schema uri

"https://diaspora.github.io/diaspora_federation/schemas/federation_entities.json".freeze

Class Method Summary collapse

Class Method Details

.federation_entitiesObject

Parsed federation_entities schema


11
12
13
14
15
# File 'lib/diaspora_federation/schemas.rb', line 11

def self.federation_entities
  @federation_entities ||= JSON.parse(
    Pathname.new(__dir__).join("schemas", "federation_entities.json").read
  )
end