![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
github.com/LarsKoelpin/golang-json-assert
A Go library for testing JSON strings.
I could not find any library implementing the "Conform behavior", which checks, if JSON objects are downwards-compatible, therefore testing if there is a semantic versioning major bump change.
For full specification of the library see pkg/jsonassert_test.go
.
In a Nutshell, given to strings, the library can check for strict equality:
actual := `
{
"name": "Lars",
"age": 12
}
`
Expect(actual).ToEqual(actual) // returns true
But, It can also check, if a JSON conforms with another. This means, that in theory actual and expected value are schematically compatible. This can be used to ensure that diffrent JSON objects provide some compability.
actual := `
{
"name": "Lars",
"age": 12
}
`
expect := `
{
"age": 12
}
`
Expect(actual).ToConform(expect) // returns true
If you feel like there are missing some assertions / specifications, feel free to open an issue / Submit a PR.
Please see CHANGELOG for more information on what has changed recently.
$ go test
The MIT License (MIT). Please see License File for more information.
FAQs
Unknown package
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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.