Azure / Azure/typespec-azure

Spec repo structure v2 can we not have duplicate examples

Open
#2,824 4 comments 1 reaction 0 assignees View on GitHub
design:needed emitter:autorest eng
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

Right now we copy input examples files to the swagger output dir.
Feels like we might be able to not do that and just reference the original one instead reducing a lot the number of noisy files in a PR.

With the repo structure v2 I think it is working a bit better as the ref to the examples wouldn't be way up in a different folder

Contributor guide

Open the contributing guide

Research direction

Start by tracing how input example files are copied into the Swagger output under repo structure v2. Compare generated output and PR diffs before and after replacing duplicate files with references; done means the original examples are referenced without creating noisy copies and the generated output remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.