Skip to content

Make yaml parser accept anchors and aliases #12

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stku1985
Copy link

@stku1985 stku1985 commented Jul 5, 2025

Hey,

a simple change which should make API key handling a bit easier in config.yaml: allow usage of anchors and aliases.

Thanks for your consideration.

@Stream29 Stream29 self-requested a review July 5, 2025 16:39
inline fun <reified T> T.encodeJson() = globalJson.encodeToString(this)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't understand the meaning of this difference

@@ -39,6 +39,7 @@ val globalJson = Json {

val globalYaml = Yaml(
configuration = YamlConfiguration(
anchorsAndAliases = AnchorsAndAliases.Permitted(100u),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly saying, I'm not sure what is the proper value of maxAliasCount. Can you show some use case that help us to decide a proper value for this vlue?

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

Successfully merging this pull request may close these issues.

2 participants