Skip to content
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

Support folded style yaml configuration #20508

Closed
vsevel opened this issue Oct 1, 2021 · 2 comments
Closed

Support folded style yaml configuration #20508

vsevel opened this issue Oct 1, 2021 · 2 comments
Labels
area/config kind/enhancement New feature or request

Comments

@vsevel
Copy link
Contributor

vsevel commented Oct 1, 2021

Description

Given an application.yaml and the following code:

    @ConfigProperty(name = "a.b.c.d")
    String prop;

I would like to be able to write:

a.b:
  c.d: Hello RESTEasy

or:

a.b.c.d: Hello RESTEasy

and not just the full hierarchy:

a:
  b:
    c:
      d: Hello RESTEasy

it makes it a lot easier to read and maintain.

another example:

quarkus:
  security.users.embedded:
    enabled: true
    plain-text: true
    users:
      scott: jb0ss
      stuart: test
      jdoe: p4ssw0rd
      noadmin: n0Adm1n
    roles:
      scott: Admin,admin,Tester,user
      stuart: admin,user
      jdoe: NoRolesUser
      noadmin: user

instead of:

quarkus:
  security:
    users:
      embedded:
        enabled: true
        plain-text: true
        users:
          scott: jb0ss
          stuart: test
          jdoe: p4ssw0rd
          noadmin: n0Adm1n
        roles:
          scott: Admin,admin,Tester,user
          stuart: admin,user
          jdoe: NoRolesUser
          noadmin: user

/cc @radcortez

Implementation ideas

No response

@vsevel vsevel added the kind/enhancement New feature or request label Oct 1, 2021
@famod
Copy link
Member

famod commented Oct 1, 2021

/cc @radcortez

@radcortez
Copy link
Member

Closing this one because I believe it is a duplicate of #11744. Please contribute there, or if you believe that is something different please reopen it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants