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

Add accessors to entry type. #43

Merged
merged 1 commit into from
May 11, 2022
Merged

Add accessors to entry type. #43

merged 1 commit into from
May 11, 2022

Conversation

nicopap
Copy link
Contributor

@nicopap nicopap commented May 11, 2022

Hi. Awesome library and markup language! I've been experimenting with it
and I think the KdlEntry type accessors were overlooked.

While the type of entries was parsed, there was no way for the library
user to access it. It's part of the spec and I would expect to be able to
read it.

While the type of entries was parsed, there was no way for the library
user to access it. This commit let the user access the `ty` field of the
`KdlEntry` struct. It mirrors the accessors on the `value` field.
@zkat
Copy link
Member

zkat commented May 11, 2022

ahhh yep that was an oversight. Thank you!

@zkat zkat merged commit afccf01 into kdl-org:main May 11, 2022
@zkat
Copy link
Member

zkat commented May 11, 2022

This is released now as kdl@4.2.0

@nicopap nicopap deleted the add-type-info branch May 16, 2022 08:08
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.

None yet

2 participants