An emitter to output Pydantic models from TypeSpec.
This assumes you are using VSCode.
- Clone the repo and navigate to the project root.
- If you don't have
pnpm
on your machine, runnpm install -g pnpm
- Run
pnpm install
- Run
pnpm build
andpnpm watch
so that changes to the emitter are picked up automatically. - Run
pnpm test
Install the Mocha Test Explorer for VSCode. You should be able to run all of the tests and debug into them.
There's a launch.json
configuration you can edit to run the emitter against a spec in the packages\samples\scratch
folder.
If you just want to try the emitter, you can go the following playground: https://tjprescott.github.io/typespec-pydantic/