Sha256: 0b7ccbc9221fba65880c78a2f355876272de1840e5f969cfa0ccff2ce2e7b8ec

Contents?: true

Size: 619 Bytes

Versions: 27

Compression:

Stored size: 619 Bytes

Contents

require_relative "schema/json_schema"
require_relative "schema/xsd_schema"
require_relative "schema/relaxng_schema"
require_relative "schema/yaml_schema"

module Lutaml
  module Model
    module Schema
      def self.to_json(klass, options = {})
        JsonSchema.generate(klass, options)
      end

      def self.to_xsd(klass, options = {})
        XsdSchema.generate(klass, options)
      end

      def self.to_relaxng(klass, options = {})
        RelaxngSchema.generate(klass, options)
      end

      def self.to_yaml(klass, options = {})
        YamlSchema.generate(klass, options)
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
lutaml-model-0.3.28 lib/lutaml/model/schema.rb
lutaml-model-0.3.27 lib/lutaml/model/schema.rb
lutaml-model-0.3.26 lib/lutaml/model/schema.rb
lutaml-model-0.3.25 lib/lutaml/model/schema.rb
lutaml-model-0.3.24 lib/lutaml/model/schema.rb
lutaml-model-0.3.23 lib/lutaml/model/schema.rb
lutaml-model-0.3.22 lib/lutaml/model/schema.rb
lutaml-model-0.3.21 lib/lutaml/model/schema.rb
lutaml-model-0.3.20 lib/lutaml/model/schema.rb
lutaml-model-0.3.19 lib/lutaml/model/schema.rb
lutaml-model-0.3.18 lib/lutaml/model/schema.rb
lutaml-model-0.3.17 lib/lutaml/model/schema.rb
lutaml-model-0.3.16 lib/lutaml/model/schema.rb
lutaml-model-0.3.15 lib/lutaml/model/schema.rb
lutaml-model-0.3.14 lib/lutaml/model/schema.rb
lutaml-model-0.3.13 lib/lutaml/model/schema.rb
lutaml-model-0.3.12 lib/lutaml/model/schema.rb
lutaml-model-0.3.11 lib/lutaml/model/schema.rb
lutaml-model-0.3.10 lib/lutaml/model/schema.rb
lutaml-model-0.3.9 lib/lutaml/model/schema.rb