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.
This is a Ruby version of gfx/p5-Data-Validator + xaicron/p5-Data-Validator-Recursive.
Compare below versus https://metacpan.org/pod/Data::Validator
rule = Data::Validator.new(
'uri' => { isa: String, xor: %w(schema host path_query) },
'schema' => { isa: String, default: 'http' },
'host' => { isa: String },
'path_query' => { isa: String, default: '/' },
'method' => { isa: String, default: 'GET' },
)
args = rule.validate('uri' => 'http://example.com')
and below versus https://metacpan.org/pod/Data::Validator::Recursive
# create a new rule
rule = Data::Validator::Recursive.new(
'foo' => String,
'bar' => { isa: Integer },
'baz' => {
isa: Hash, # default
rule: {
'hoge' => { isa: String, optional: 1 },
'fuga' => Integer
},
},
)
# input data for validation
input = {
'foo' => 'hoge',
'bar' => 1192,
'baz' => {
'hoge' => 'kamakura',
'fuga' => 1185,
},
}
# do validation
params = rule.validate(input) # raises automatically on error
Data::Validator
is recursive by default. There is no such thing like a nonrecursive validator.->with('Method')
does not make sense to us, so not supported.does
also does not make sense. Not supported.->with('Sequenced')
.xor
; all examples seems illustravive to me. Other validators like JSON Schema (cf zigorou/perl-JSV) do not have this. This lack of understanding can negatively impact.FAQs
Unknown package
We found that data-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.