feat: add codegen generator fixtures (TON-850)#446
Conversation
Adds model-patterns.fixture.ts, the JSON-Schema-generator fixture covering every TypeScript→JSON Schema pattern handled by generate-json-schema.js. Lands the fixture on main (the part of the closed #364 the reviewer asked to keep) so the iOS and Android sides can generate models from it and test the generated output, instead of pinning CI to the abandoned feature branch.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 56 minutes and 59 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Lands the JSON-Schema-generator fixture (
model-patterns.fixture.ts) onmain— the part of the closed #364 the reviewer asked to keep (the rejectedgenerate-json-schema.spec.tsis intentionally not included).Why: the iOS and Android codegen-result tests (
make models/generate-test-models.sh→ diff generated models against the committed snapshot) need this fixture as their input. With it only living on the abandonedfeature/ton-850-schema-generator-testsbranch, both platforms had to pin CI to a dead branch. Landing it here lets them point atmain.Scope: single fixture file; the generator scripts it feeds (
generate-json-schema.js,json-schema-to-openapi-spec.js) are already onmain.