Module: Lutaml::Jsonschema::LjrPackageDefinition
- Defined in:
- lib/lutaml/jsonschema/ljr_package_definition.rb
Overview
LJR = LutaML JSON Schema Repository. Defines the package layout: Schema models in separate JSON files, Configuration in a single lutaml-jsonschema.yaml file.
Class Method Summary collapse
Class Method Details
.definition ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/lutaml/jsonschema/ljr_package_definition.rb', line 9 def self.definition @definition ||= Lutaml::Store::PackageDefinition.new( name: :ljr, ) do |pkg| pkg.model( model: Schema, dir: nil, layout: :separate, key: :dollar_id, default_format: :json, ) pkg.model( model: Configuration, file: "lutaml-jsonschema.yaml", key: :title, default_format: :yaml, ) end end |