Skip to content

feat(files_reader): add native TypeSpec (.tsp) file support - #9

Closed
KvizadSaderah wants to merge 1 commit into
GlobalTypeSystem:mainfrom
KvizadSaderah:feat/native-tsp-support
Closed

feat(files_reader): add native TypeSpec (.tsp) file support#9
KvizadSaderah wants to merge 1 commit into
GlobalTypeSystem:mainfrom
KvizadSaderah:feat/native-tsp-support

Conversation

@KvizadSaderah

@KvizadSaderah KvizadSaderah commented Dec 12, 2025

Copy link
Copy Markdown
Contributor

Adds automatic compilation of TypeSpec files to JSON Schema:

  • Added .tsp to valid_extensions for file discovery
  • Created _compile_tsp() method using subprocess to call tsp compiler
  • Falls back to npx @typespec/compiler if tsp not in PATH
  • Gracefully skips .tsp files if compiler not available
  • Updated README with native TypeSpec documentation

Requires: npm install -g @typespec/compiler @typespec/json-schema

Closes request from PR #8

Adds automatic compilation of TypeSpec files to JSON Schema:

- Added .tsp to valid_extensions for file discovery
- Created _compile_tsp() method using subprocess to call tsp compiler
- Falls back to npx @typespec/compiler if tsp not in PATH
- Gracefully skips .tsp files if compiler not available
- Updated README with native TypeSpec documentation

Requires: npm install -g @typespec/compiler @typespec/json-schema

Closes request from PR GlobalTypeSystem#8 review
@Artifizer

Copy link
Copy Markdown
Contributor

Let's get rid of TypeSpec support for now because it doesn't offer native libs w/o a need to run subprocess'es

@Artifizer Artifizer closed this Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants