Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5681

Example Objects Library - Standalone utility for realistic sample data

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.0.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Use cases:

      • Email template previews/validation
      • AI context generation
      • API documentation
      • Unit testing
      • Any feature needing realistic sample data

      Location:

      core/Util/ExampleData/
      |-- examples/
      |   |-- client.json
      |   |-- invoice.json
      |   |-- service.json
      |   |-- ...
      |-- ExampleDataLoader.php
      

      Key Design Decisions:

      • JSON files with a PHP loader class (one JSON file per model)
      • Hybrid data approach: runtime capture + manual curation
      • Plugin/module extensibility for custom example objects

      Acceptance Criteria:

      • ExampleDataLoader class can load and parse JSON example files
      • Composite methods like getInvoiceContext() return full object graphs
      • Schema output available for client-side validation
      • Plugins/modules can register and merge their own example objects

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: