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.
jellyschema
Advanced tools
Configuration DSL
Provides facilities to:
Current crate status is experimental.
jellyschema
crate is one small piece of the balena.io configuration project. This project has
no public / open specification yet, but we're working on it and it will be public once finished.
This library is written in the Rust language and can be used:
Add as a dependency to your Cargo.toml
:
[dependencies]
jellyschema = "0"
Evaluate simple JSON:
let input_schema: serde_yaml::Value = serde_yaml::from_str(
include_str!("configuration.yml")).
unwrap();
let (json_schema, ui_object) = Generator::with(input_schema)?.generate();
Install via npm
npm install --save jellyschema
Generate simple JSON Schema & UI Object Schema:
const jellyschema = require('jellyschema');
const initialValue = `
title: demo
version: 1
properties:
- network:
title: Network
properties:
- ssid:
title: Network SSID
type: string
minLength: 1
maxLength: 32
- passphrase:
title: Network Key
type: password
minLength: 8
`;
var schema = new jels.JellySchema(initialValue);
const result = schema.jsonAndUiSchema();
console.log(JSON.stringify(result, null, 2));
console.log(schema.validate({network: { ssid: 'foo', passphrase: 123 }}));
console.log(schema.errors());
An example of using this module in nodeJS is available in the examples/node
folder:
cd examples/node
npm install
npm start
An example of using this module in the browser is available in the examples/browser
folder:
cd examples/browser
npm install
npm start
Open localhost:8080
in your browser.
If you're having any problem, please raise an issue on GitHub or contact us, and the balena.io team will be happy to help.
jellyschema
is open source software, and may be redistributed under the terms specified in
the license.
FAQs
Configuration DSL
The npm package jellyschema receives a total of 6 weekly downloads. As such, jellyschema popularity was classified as not popular.
We found that jellyschema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
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.