MattRoss34 / spring-cloud-config

NodeJS configuration management library based on Spring Cloud Config.
ISC License
26 stars 8 forks source link

Default activeProfiles to ['default'] #78

Open daecabhir opened 4 years ago

daecabhir commented 4 years ago

CloudConfigOptionsSchema currently requires that the developer specify at least one profile to activate, when there may be no explicit profiles defined in the configuration set (e.g., if development, test and production are served by completely different configuration servers). The Joi schema definition for this could be set up to default activeProfiles to ['default'] if not supplied, rather than having SpringCloudConfig#load throw an error.