Repository navigation
Choreo 2027 schema - #1520
Closed
shueja wants to merge 3 commits into
Closed
Choreo 2027 schema#1520shueja wants to merge 3 commits into
shueja wants to merge 3 commits into
Conversation
- Implemented a script to generate TypeScript types from JSON schema. - Created generated types in `document/ts/src/generated/types.ts`. - Added validators for project files, trajectory files, and progress updates in `document/ts/src/validators.ts`. - Configured TypeScript settings in `document/ts/tsconfig.json`. - Updated package.json scripts for generating types and validating documents. - Added integration test JSON files for project and trajectory files.
- Implemented a script to generate TypeScript types from JSON schema. - Created generated types in `document/ts/src/generated/types.ts`. - Added validators for project files, trajectory files, and progress updates in `document/ts/src/validators.ts`. - Configured TypeScript settings in `document/ts/tsconfig.json`. - Updated package.json scripts for generating types and validating documents. - Added integration test JSON files for project and trajectory files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Source of truth is the schema.json.
A manually (with heavy help from AI code completion) C++/WPILib derived implementation. This has conditionally compiled TrajoptLib integration to help with conversion to TrajoptLib types.
Procedurally generated Rust (using
typify) and TypeScript (using json-schema-to-typescript) implementations.The Rust one will eventually be phased out as we move away from Rust.