Knotx / knotx

Knot.x is a highly-efficient and scalable integration framework designed to build backend APIs
https://knotx.io
Apache License 2.0
126 stars 26 forks source link

Value resolver for hocon that converts the sys prop variable into int… #421

Closed marcinczeczko closed 6 years ago

marcinczeczko commented 6 years ago

Description

A HOCON value resolver that's capable of doing value type detection. It should be able to detect Integer, Boolean and finally string based on the value. It's a must have in order to have an ability to merge with JSON having values in those types

Motivation and Context

HOCON supports variables resolving from system properties. However, by design it always wraps it as String. However, we're using JSON extensively to configure verticles. Verticle implementations are looking forward for values in type of Integer (e.g. port) or boolean, so there is a need to be able to properly inject those values.

Screenshots (if appropriate):

Types of changes

Checklist:


I hereby agree to the terms of the Knot.x Contributor License Agreement.

marcinczeczko commented 6 years ago

fixed comment