How retrieve a complex setting #22
-
Hi, I'm trying to create docs generator for our microservice system. microservices:
repositoryPath: '../../../GitHub/Sample.ApiGatewayOcelot/src/**/*.csproj'
projectNamesPattern: 'MMLib.{*}.csproj' I want group settings, but I don't know how to retrieve that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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
usingIDocument nested = IMetadata.GetDocument("microservices")
(whereIMetadata
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 likenested.GetString("repositoryPath")
. Let me know if that does the trick or not.