-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature/load all #22
Feature/load all #22
Conversation
test the load-all? flag has no regression when called through both parse-string and parse-stream
respond to the load-all? flag by callin Yaml.loadAll in place of Yaml.load
we need to recreate the stream for each test as it's consumed in the process of testing
just dispatch to load-stream when we have a string, using a StringReader
@clumsyjedi Sorry we didn't get back to you. I've noticed this PR just now. Would you mind cleaning up the changes to /cc @lread |
Ah. Cool! For those, like me, who would find a description helpful: A YAML 1.1 stream can contain multiple documents. @clumsyjedi thanks for this PR. |
I will carry out recommended changes. |
missed one!
A YAML 1.1 stream can contain multiple documents. Currently, clj-yaml will only load the first document. This change adds the ability to optionally load all documents. Enable by specifying `:load-all?` true in `opts` for `parse-string` or `parse-stream`.
No description provided.