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

Option to order the groups and properties by name #88

Open
nandorholozsnyak opened this issue Jul 21, 2023 · 4 comments
Open

Option to order the groups and properties by name #88

nandorholozsnyak opened this issue Jul 21, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@nandorholozsnyak
Copy link
Member

Is your feature request related to a problem? Please describe.
The groups and properties are having a fixed order that the developers are not able to customize, it would be great if there would be two different options:

  • orderGroup
  • orderProperties
@nandorholozsnyak nandorholozsnyak added the enhancement New feature or request label Jul 21, 2023
@nandorholozsnyak nandorholozsnyak self-assigned this Jul 21, 2023
@roded
Copy link

roded commented Sep 4, 2023

Not sure if this deserves a different issue, but I would like to be able to sort all properties by name.
I have 2 components creating properties in the same name space and spring-configuration-property-documenter is outputting them separately.

@nandorholozsnyak
Copy link
Member Author

Hello @roded

Can you show me some examples and expected outcome? Thank you.

@roded
Copy link

roded commented Sep 9, 2023

Hi @nandorholozsnyak, sorry I don't have examples to share, but I can try to explain the issue.
I have 2 Spring Boot starters which share a configuration namespace, e.g.: my.component.config.
When creating the documentation for a project which depends on these two starters, the generated configuration document does not sort the configuration properties by name, so my.component.config.b does not necessarily follow my.component.config.a. Hope that makes sense.

Long story short, I think that spring-configuration-property-documenter should sort the properties lexicographically.

@nandorholozsnyak
Copy link
Member Author

Thank you, I think that is enough, I'll see what I can do with it, what are the possibilities :D

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

No branches or pull requests

2 participants