feat(typespec-autorest): add skip-example-copying emitter option#4190
feat(typespec-autorest): add skip-example-copying emitter option#4190
skip-example-copying emitter option#4190Conversation
When enabled, the emitter will not copy example files to the output directory. Instead, it will reference the source example files using relative file paths from the output location. Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/5966f0f4-258b-41b9-9753-b3b16cb262f3 Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
markcowl
left a comment
There was a problem hiding this comment.
- add a changeset for this feature
- Add an additional test that verifies correct example example references and no copying in a versioned spec.
Make sure all tests are passing and all files are correctly formatted and that your branch is up to date with main and has no merge issues
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/774e6722-332b-4c31-acf6-e8363ef4a705 Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Added in 9e3df9b:
All 468 tests pass, files are formatted, and branch is up to date with main. |
|
/azp run typespec-azure - PR Tools |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
All changed packages have been documented.
Show changes
|
commit: |
|
You can try these changes here
|
|
@copilot Please pull the latest from main, ensure there are no merge issues, and ensure that all files are correctly formatting (this PR is currently failing the format check (pnpm format) |
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/a5a493be-c2a6-4f3a-afc1-182c25389195 Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Branch is up to date with main (no merge issues). Fixed the formatting issue in |
skip-example-copyingboolean option toAutorestEmitterOptionsinterface and JSON schemaskipExampleCopyingtoAutorestDocumentEmitterOptionsskipExampleCopyingthrough inresolveAutorestOptions$refgeneration to use relative source path when skip-example-copying is enabled