Repository navigation
feat(realistic): fictitious Documents delivery (link vs. embedded base64) - #37
Merged
Merged
Conversation
…set fund Fund-Documents_2025-10.xml (ControlData + Documents only) is generated by make_realistic.py and shows both ways to deliver a document: - Prospectus as a link (DocumentURL on example.com), assigned to the fund by LEI - PRIIPs KID (two share classes) and factsheet (one share class) embedded as base64 in BinaryData, SizeInBytes = decoded length The embedded PDFs are one-page PDF 1.4 files built byte for byte by the generator (no timestamps, no /ID, computed xref offsets), so the output stays deterministic. CI regenerates and compares the file like the others, validates it against 4.2.9, checks the decoded sizes, runs Schematron and skips the portfolio checks for files without <Funds>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Adds
FundsXML_Files/4.2.9/realistic/Fund-Documents_2025-10.xml, generated bymake_realistic.py:ControlData+Documentsonly (Fundsis optional at the root in 4.2.9) for the Multi-Asset fund of the realistic sample set (Example Multi Asset Opportunities Fund, LEIXMPL00FNDMULTI000170).ListedTypeProspectusFundby LEIDocumentURLonhttps://www.example.com/…,SizeInBytesof the notional filePRIIPS-KIDATXMPLF03016(EUR R),ATXMPLF03024(EUR I)BinaryData(base64, 76 chars/line)FactsheetATXMPLF03016The embedded PDFs are one-page PDF 1.4 files built byte for byte by the generator (no timestamps, no
/ID, xref offsets computed and self-checked); they state that they are fictitious training samples.SizeInBytesequals the decoded length. Meant as material for a training film on documents.CI
BinaryDatadecodes to exactlySizeInBytesbytes and is a PDFfund-summary.xq) are skipped for files without<Funds>Also validated locally with XSD 1.1 (Xerces) against 4.2.9 and the current development schema.
Question
The existing
FundsXML_Files/4.2.9/documents/Fund_Documents.xmlcontains real company data (names and URLs of a real asset manager). Should it be replaced by this file (or removed in favour of it)? Not changed in this PR.🤖 Generated with Claude Code