Skip to content

feat(realistic): fictitious Documents delivery (link vs. embedded base64) - #37

Merged
karlkauc merged 1 commit into
mainfrom
feat/realistic-documents
Nov 26, 2026
Merged

karlkauc merged 1 commit into
mainfrom
feat/realistic-documents

Conversation

@karlkauc

Copy link
Copy Markdown
Contributor

What

Adds FundsXML_Files/4.2.9/realistic/Fund-Documents_2025-10.xml, generated by make_realistic.py: ControlData + Documents only (Funds is optional at the root in 4.2.9) for the Multi-Asset fund of the realistic sample set (Example Multi Asset Opportunities Fund, LEI XMPL00FNDMULTI000170).

Document ListedType Assigned to Delivery
Prospectus Prospectus Fund by LEI link: DocumentURL on https://www.example.com/…, SizeInBytes of the notional file
PRIIPs KID PRIIPS-KID share classes ATXMPLF03016 (EUR R), ATXMPLF03024 (EUR I) embedded: BinaryData (base64, 76 chars/line)
Factsheet Factsheet share class ATXMPLF03016 embedded

The 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. SizeInBytes equals the decoded length. Meant as material for a training film on documents.

CI

  • regenerated and compared byte by byte like the other realistic files; XSD 4.2.9 validation; ISIN/LEI lint
  • new check: every BinaryData decodes to exactly SizeInBytes bytes and is a PDF
  • Schematron runs on it (0 errors/warnings); the portfolio checks (custom DQ, factsheet, CSV, fund-summary.xq) are skipped for files without <Funds>
  • the four existing generated files stay byte-identical

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.xml contains 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

…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>
@karlkauc
karlkauc merged commit f164a66 into main Nov 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant