-
Notifications
You must be signed in to change notification settings - Fork 146
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
Cannot use dot in keys when using Object format #250
Comments
I'm having this problem with String type as well. It looks like this isn't specific to Objects. |
Sorry @jonaskello, no workaround that I know of. The way convict parses all the objects is too complicated. This part is getting hard to maintain. The problem you are mentioning is a proof of it. A very good part of convict is the thorough tests which provide the needed cover and confidence when we modiy convict. A good thing would be to rewrite the whole parsing of objects. Taking advantage of ES6 features like the Map data structure, instead of using plain Objects, would be the way to go. |
This is hitting us pretty hard as the end-user is putting in config vals, not ourselves. |
Wrapping in |
#354 ;) |
* add AppleIAP and PurchaseManager tests * Updated App Store config to map appName to credentials instead of bundleId due to mozilla/node-convict#250. * Downstream effects include adding a new async static method to the AppleIAP module to initialize an App Store Server API client that can be called from PurchaseManager.querySubscriptionPurchase if the client isn't initialized by the time it's needed.
* add AppleIAP and PurchaseManager tests * Updated App Store config to map appName to credentials instead of bundleId due to mozilla/node-convict#250. * Downstream effects include adding a new async static method to the AppleIAP module to initialize an App Store Server API client that can be called from PurchaseManager.querySubscriptionPurchase if the client isn't initialized by the time it's needed.
* add AppleIAP and PurchaseManager tests * Updated App Store config to map appName to credentials instead of bundleId due to mozilla/node-convict#250. * Downstream effects include adding a new async static method to the AppleIAP module to initialize an App Store Server API client that can be called from PurchaseManager.querySubscriptionPurchase if the client isn't initialized by the time it's needed.
* add AppleIAP and PurchaseManager tests * Updated App Store config to map appName to credentials instead of bundleId due to mozilla/node-convict#250. * Downstream effects include adding a new async static method to the AppleIAP module to initialize an App Store Server API client that can be called from PurchaseManager.querySubscriptionPurchase if the client isn't initialized by the time it's needed.
* add AppleIAP and PurchaseManager tests * Updated App Store config to map appName to credentials instead of bundleId due to mozilla/node-convict#250. * Downstream effects include adding a new async static method to the AppleIAP module to initialize an App Store Server API client that can be called from PurchaseManager.querySubscriptionPurchase if the client isn't initialized by the time it's needed.
I have a case where an URL is a key in an object that is a default value for a setting. Something like this:
This fails to validate with this error:
I guess it is becuase convict supports dot notation in the string sent to
get()
which gets confusing when the keys also have dots. Is there a workaround for this so we can use URLs as keys?The text was updated successfully, but these errors were encountered: