Add snapshotted mapping configuration sources
This commit is contained in:
@@ -53,6 +53,9 @@ func parseSource(source Source, sourceID string, limits parseLimits) (parsedSour
|
||||
if len(diagnostics) != 0 || read.info == nil {
|
||||
return parsedSource{source: read.info}, diagnostics
|
||||
}
|
||||
if read.document != nil {
|
||||
return parsedSource{document: read.document, source: read.info, bytes: read.bytes}, nil
|
||||
}
|
||||
|
||||
root, issues := yamladapter.Parse(bytes.NewReader(read.data), sourceID, limits.document)
|
||||
if len(issues) != 0 {
|
||||
|
||||
Reference in New Issue
Block a user