Sha256: 378c0a893b8349b12be8f52d4aa3b71baf79b4039c34fc1fa0985938612baf8c

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

require "govuk_schemas/version"
require "govuk_schemas/schema"
require "govuk_schemas/random_example"
require "govuk_schemas/document_types"
require "govuk_schemas/example"

module GovukSchemas
  def self.content_schema_dir=(path_to_schemas)
    @content_schema_dir = path_to_schemas
  end

  def self.content_schema_dir
    @content_schema_dir ||= ENV.fetch("GOVUK_CONTENT_SCHEMAS_PATH", "../publishing-api/content_schemas")
  end

  # @private
  class InvalidContentGenerated < RuntimeError
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
govuk_schemas-5.0.4 lib/govuk_schemas.rb
govuk_schemas-5.0.3 lib/govuk_schemas.rb
govuk_schemas-5.0.0 lib/govuk_schemas.rb
govuk_schemas-4.7.0 lib/govuk_schemas.rb
govuk_schemas-4.6.0 lib/govuk_schemas.rb
govuk_schemas-4.5.0 lib/govuk_schemas.rb