-
Notifications
You must be signed in to change notification settings - Fork 5.2k
TypeSpec Validation
Mike Harder edited this page Feb 13, 2025
·
3 revisions
To ensure you see the same results from TypeSpecValidation in your PR check and tsv
on your local machine:
- Merge latest from parent (e.g.
main
orRPSaaSMaster
) to your PR branch - Run locally
-
git clean -xdf
(may revert any local changes) git pull
npm ci
-
npx tsv ...
- If you are still having problems, try cloning your branch to a new folder, or try on another machine.
- If the problem can be reproduced on a clean machine, request assistance from the TypeSpec Discussion teams channel.
If you are having problems with diffs from "tsp compile" related to examples, ensure you understand how examples flow from source to destination.
The source of examples is under your TypeSpec source code folder, and the destination of examples is under the Swagger folder. The TypeSpec compiler copies from source to destination. In our sample:
- source
- destination
If you are changing examples, you must first change the copy under your TypeSpec folder, and then run tsp compile
(or tsv
which calls compile
) to update the copies in your Swagger folder.