feat: add lat.md support to the codebase#279
Merged
vinitkumar merged 5 commits intomasterfrom Apr 3, 2026
Merged
Conversation
Contributor
Reviewer's GuideAdds initial lat.md knowledge graph documentation (architecture, behavior, tests, and repo hygiene) and wires key code paths and tests to those docs via @lat comments, without changing runtime behavior. Sequence diagram for Json2xml.to_xml conversion and validation behaviorsequenceDiagram
actor Caller
participant Json2xml as Json2xml.to_xml
participant Dicttoxml as dicttoxml.dicttoxml
participant XPath as convert_to_xpath31
participant Minidom as defusedxml.minidom.parseString
Caller->>Json2xml: to_xml(data, options)
alt xpath_format enabled
Json2xml->>Dicttoxml: dicttoxml(obj, xpath_format=True, options)
Dicttoxml->>XPath: convert_to_xpath31(obj)
XPath-->>Dicttoxml: xpath_xml_bytes
Dicttoxml-->>Json2xml: xml_bytes
else standard format
Json2xml->>Dicttoxml: dicttoxml(obj, xpath_format=False, options)
Dicttoxml-->>Json2xml: xml_bytes
end
alt pretty output enabled
Json2xml->>Minidom: parseString(xml_bytes)
alt xml is well formed
Minidom-->>Json2xml: dom_document
Json2xml-->>Caller: pretty_xml_string
else xml is invalid
Minidom-->>Json2xml: parse error
Json2xml-->>Caller: raise InvalidDataError
end
else raw output
Json2xml-->>Caller: xml_bytes
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #279 +/- ##
==========================================
+ Coverage 95.89% 95.92% +0.02%
==========================================
Files 5 5
Lines 463 466 +3
==========================================
+ Hits 444 447 +3
Misses 19 19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Introduce lat.md-based architecture, behavior, and test documentation and link key code paths and tests to the new knowledge graph.
Enhancements:
Documentation:
Tests:
Chores: