Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
= LutaML: Ruby library for accessing data models
== Purpose
LutaML aims to be a universal data model accessor that allows parsing data models in multiple languages, including:
== Install
With bundler, in Gemfile
:
Directly:
== Usage
=== Parsing
The Lutaml::Parser.parse
method provides a single point of entry for parsing
data model files.
The return object is always a Lutaml::LutamlPath::DocumentWrapper
object,
where #original_document
returns the native parsed models.
wrapper = Lutaml::Parser.parse([File.new("example.exp")])
wrapper.original_document
wrapper = Lutaml::Parser.parse([File.new("example.exp.yaml")], ::Lutaml::Parser::EXPRESS_CACHE_PARSE_TYPE)
=== Selecting EXPRESS schemas
LutaML supports the ModelElement#to_hash(..., select_proc:)
functionality
of Expressir, allowing Expressir to only call to_hash
on schemas that
fit a dynamic criteria.
The criteria is set via a Ruby Proc
object, as follows.
filtered_schemas = ["action_schema", "date_time_schema"]
wrapper.select_proc = Proc.new do |value| if value.is_a?(Expressir::Model::Declarations::Schema) filtered_schemas.include?(value.id) else true end end
serialized = wrapper.to_liquid
=== CLI
There is a command-line interface available for parsing supported data model files.
*.exp
*.lutaml
test.dot
file in the current directory$ lutaml -o . test.lutaml
test.png
file in the assets
directoryFor additional info refer to lutaml --help output
.
== Copyright and license
Copyright Ribose. BSD-3 License.
FAQs
Unknown package
We found that lutaml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.