Open TkTech opened 6 years ago
An implementation I'm working on right now requires this ability.
@TkTech @wardi just pinging if this will be added to ckanext-scheming
You can just copy this into your extension, it's just a validator. This issue is just to see if it's worth including by default.
+1 to adding this validator by default.
It has the added bonus of creating a simple workflow for newly inserted packages being marked private, helping with the curation process, whilst keeping the schema definition "clean" compared to defining a hidden field in the schema to flag deferred validation.
This is a simple but very useful trick we've done in an ongoing contract which allows fields to be marked as required only when the dataset is actually "published" (in this case set from private to public). This allows the minimal required metadata to be always required (title, slug, description, etc) and any number of other fields to be filled in over time by data entry without having to complete the entire form. However if a field is populated, then the other validators will still run on them.
Is this a desirable feature to have in ckanext-scheming?