Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Lists of named subobjects vs maps #684

Open
@dragoslav

Description

Rationale

environments:
- name: port
  value: 8080
- name: theme
  value: light

advantage ⇒ easy to create a schema and process by machines

environments: 
  port: 8080
  theme: light

advantage ⇒ easier for using by humans

Additional references:

Current goals/requirements:

  • it should be easy to write DSL (solution 2), thus we support syntactic sugars and yaml vs just json
  • it should be also easily processable - json with full DSL expansion (breed: x should be breed: reference: x)

To implement above we needed to have custom parsers and serialization but that also gives more control - data model is not "exposed" directly.

Proposal

If we use list approach we allow easier processing and we could do this:

  • we keep current human friendly approach, thus custom parser and concise DSL - small change in additional resource "expansion"
  • serialization to yaml/json should be done in list form

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions