Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
amf-client-js
Advanced tools
AMF (AML Modeling Framework) is an open-source programming framework, capable of parsing, generating and validating metadata documents defined using AML. It can be used as a library in Scala, Java, or JavaScript projects. The modular design of AMF facilitates creating plugins capable of parsing other metadata syntaxes not defined by AML.
// add mulesoft repository
repositories {
maven {
url 'https://repository-master.mulesoft.org/nexus/content/repositories/releases'
}
}
dependencies {
compile 'com.github.amlorg:amf-api-contract_2.12:x.y.z'
}
<dependency>
<groupId>com.github.amlorg</groupId>
<artifactId>amf-api-contract_2.12</artifactId>
<version>x.y.z</version>
</dependency>
NOTE: you may use the -SNAPSHOT
versions of the artifacts at your own risk since those snapshot versions may contain breaking changes.
$ npm install --save amf-client-js
To build into a JVM jar:
sbt package
To build into a JS bundle:
sh js-build.sh
More info on how to add AMF to your project here.
AMF natively supports the following formats:
the following semantic models:
and the following syntactic models:
The models above and any other models may be extended and supported via custom AML-defined models. Other formats and models that cannot be expressed with AML may also be supported via plugins.
The only guaranteed output of AMF is the JSON-LD "AMF model". Any other output such as any output provided natively by the models listed under the section above may change at any time. This means that while the semantic representation of those outputs may remain unchanged, the syntactical expression such as the order in which the outputted metadata is expressed and any other syntax-related constructs may change from one version of AMF to another. If this is an issue for your use-case, you may consider using a custom resolution/generation pipeline.
The following image shows each module in the AMF ecosystem as a dependency graph.
For AMF adopters it is recommended to use the amf-api-contract
module which contains transitive dependencies with every
module in the ecosystem except the CLI. For AML adopters (with no Web API nor Custom validation features usage) it is recommended to
adopt the amf-aml
module which includes parsing, validation & resolution for AML documents only. For more details on
AML visit the AML repository.
The amf-api-contract
and amf-aml
are the recommended modules for AMF and AML adopters respectively.
If you are interested in contributing to this project, please make sure to read our contributing guidelines.
FAQs
AMF Library
The npm package amf-client-js receives a total of 21,693 weekly downloads. As such, amf-client-js popularity was classified as popular.
We found that amf-client-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.