Skip to content

How retrieve a complex setting #22

Answered by daveaglick
Burgyn asked this question in Q&A
Discussion options

You must be logged in to vote

I've still got some work to do around this - I think it works better for JSON than YAML right now if I recall cc @sytexa-julia

Try getting the complex object as an IDocument using IDocument nested = IMetadata.GetDocument("microservices") (where IMetadata is the document or settings, etc. that contains this data, I.e. Document.GetDocument("microservices") if this is in front matter, etc.). Then you can get the nested values as additional metadata like nested.GetString("repositoryPath"). Let me know if that does the trick or not.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Burgyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants