question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extract/validate needs to guess descriptor type

See original GitHub issue

Overview

Currently, this one will not work as expected:

report = validate(descriptor='datapackage.yaml') # will be handled as a default (resource)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mor120commented, Jul 12, 2021

Hey, Just updating that I’m planning to work on the enhancement soon, probably on the weekend.

0reactions
rollcommented, Jul 8, 2021

@mor120 What I meant is to add an additional type check. Currently, we infer source type with the existent code. My idea is to add a similar inferring code to descriptor if it’s provided.

So it’s not a bug; it’s a possible enhancement

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic type validation in TypeScript - LogRocket Blog
As you can see, a new function has been defined, called validate , which receives as a parameter an ExampleType object, with which...
Read more >
descriptors - a package for easy input validation - GitHub
A collection of descriptors for validating input data. - GitHub - bheinzerling/descriptors: A collection of descriptors for validating input data.
Read more >
Value extraction for cascaded validation and type argument ...
Value extraction is needed when constraints are applied to the element(s) stored within a container type. There are two categories: Cascaded validation of ......
Read more >
Chapter 7 Working with validate | The Data Validation Cookbook
Chapter 7 Working with validate. In this section we dive deeper into the the central object types used in the package: the validator...
Read more >
soql validation rules - Salesforce Developer Community
I would lik to query all validation rules that contain a condition ... SELECT Id, ValidationName, Active, Description, EntityDefinition.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found