Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
bs-awesomize
Advanced tools
A ReasonML implementation of the Awesomize validation and data scrubbing library.
A ReasonML implementation of the Awesomize library for data validation / scrubbing
We use Awesomize to ensure that data which comes into our system fits the proper shape and is within expected constraints. There are several other libraries which aim to handle this, however, translating them to ReasonML proved problematic. Also, the Awesomize library is asynchronous by default which allows much greater flexibility in validation / scrubbing code.
This library can be considered production ready.
Inside of a BuckleScript project:
yarn add bs-awesomize
Then add bs-awesomize
to your bs-dependencies
in your bsconfig.json
{
"bs-dependencies": [ "bs-awesomize" ]
}
In order to use awesomize you will want to provide a "schema" which
consists of a map of fields
to field definitions
.
type maybe = option(Js.Json.t);
type jsonMap = Belt.Map.String.t(maybe);
type definition = {
read: Js.Dict.t(Js.Json.t) => Js.Promise.t(maybe),
sanitize: option((maybe, jsonMap) => Js.Promise.t(maybe)),
validate: list((maybe, jsonMap) => Js.Promise.t(option(string))),
normalize: option((maybe, jsonMap) => Js.Promise.t(maybe)),
};
FAQs
A ReasonML implementation of the Awesomize validation and data scrubbing library.
We found that bs-awesomize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.