New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty/presence type #2705
Comments
I removed IMO we should probably add the |
Yes, without sum types we need to do that.
Yes. For the specification, however, it would be good to have a special type which indicates the presence of a key. While "any" would be okay, it somehow does not reflect the purpose. Or alternatively: we get rid of these presence keys and make the boolean (with "false" as default on absence). |
Do you mean for the specification of an applications config, or for our METADATA.ini specification? |
For application specification there technically is this: Lines 611 to 623 in 4a3c163
Although even there it is stated that the status is unclear.... Fixing/implementing |
Ideally, the types for specifications and meta-specifications (METADATA.ini) are the same. Until now this was the case for the CORBA types. It seems like they are now out-of-sync, hence this issue.
In this issue, I did not want to raise the problem how to require a key (we already have #1024 for this. It would be great if you can clean this mess up. I am not sure if we need it for LCDproc, though. I think it would be better to have defaults everywhere.) Instead, it is about to find the proper CORBA type to indicate that (meta-)keys are empty and only the presence of the (meta-)key is relevant.
|
I can't find it in METADATA.ini |
I answered it in #2706. So maybe migrating everything to boolean is the best way? "kdb setmeta" needs a meta-value anyway. And configuration files are of course free to render the booleans differently (also without values). |
Does the type plugin still support empty? I could not find it in the docu of the type plugin but it is still in the description of [type] in METADATA.ini.
At least
[binary]
in METADATA.ini still uses empty.The text was updated successfully, but these errors were encountered: