Coder Social home page Coder Social logo

Comments (5)

lewispeckover avatar lewispeckover commented on July 20, 2024 1

What do you mean by a "a tree of key/value(s)"?

What would the structure look like? Are you suggesting it should create a path component from the index of your array, like this?

AAPL/0/shares: -75.088
AAPL/0/date: 11/27/2015
AAPL/1/shares: 75.088
AAPL/1/date: 11/26/2015

Or something different?

Consul can only store simple values at a given path, so I don't see a logical way to do this...
Sorry if I'm missing something obvious! 🙂

from consulator.

prologic avatar prologic commented on July 20, 2024

I've narrowed it down to array of objects:

Example:

AAPL:
  - shares: -75.088
    date: 11/27/2015
  - shares: 75.088
    date: 11/26/2015

This fails to import.

from consulator.

lewispeckover avatar lewispeckover commented on July 20, 2024

Currently, it's intentionally not supported.
If it were to be supported, how would you expect it to be represented in Consul?

from consulator.

prologic avatar prologic commented on July 20, 2024

As a tree of key/value(s) of course :) -- My consumer here is Consul Template and I was trying to use the {{ tree "<prefix>" }} function but since consulator can't import such things I've opted for:

config:
  nested_json: |
    <json here>

from consulator.

prologic avatar prologic commented on July 20, 2024

No you are absolutely right! I don't know what I was thinking :P -- Long day!

It makes no sense to import an array of objects. Thanks for confirming my silliness :D

from consulator.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.