Skip to content

feat: Auto-generate sample JSON data from Concerto model#767

Open
hemantch01 wants to merge 1 commit intoaccordproject:mainfrom
hemantch01:feat/add_auto-generated_json_feature
Open

feat: Auto-generate sample JSON data from Concerto model#767
hemantch01 wants to merge 1 commit intoaccordproject:mainfrom
hemantch01:feat/add_auto-generated_json_feature

Conversation

@hemantch01
Copy link

Closes #766

Added an button to the JSON Data panel that auto-generates sample JSON from the current Concerto model, populating the data editor with well-typed placeholder values.

Changes

  • Added src/utils/generateSampleData.ts utility that introspects Concerto models and generates typed sample data (String, Integer, Double, Boolean, DateTime, enums, nested concepts, arrays)
  • Added generateSampleDataFromModel() action to Zustand store in src/store/store.ts
  • Added generate button in JSON Data header in src/pages/MainContainer.tsx
  • Added Approx 9 unit tests in src/tests/utils/generateSampleData/generateSampleData.test.ts

Screenshots or Video

Screenshot 2026-03-02 222628 image

Signed-off-by: hemantch01 <hemantchaudhary905@gmail.com>
@hemantch01 hemantch01 requested a review from a team as a code owner March 2, 2026 17:01
@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit fcf58d7
🔍 Latest deploy log https://app.netlify.com/projects/ap-template-playground/deploys/69a5c27bab270f0008a739ad
😎 Deploy Preview https://deploy-preview-767--ap-template-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hemantch01 hemantch01 changed the title added generate button and added tests , all previous test passed. feat: Auto-generate sample JSON data from Concerto model Mar 9, 2026
@hemantch01
Copy link
Author

hi @sanketshevkar any feed back for this ??

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.

feat: Auto-generate sample JSON data from Concerto model

1 participant