Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
= 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.