-
Notifications
You must be signed in to change notification settings - Fork 13
[WIP] feat: implement schema inheritance and composition with schemars integration #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
fb8e1dc
feat: implement schema inheritance and composition with schemars inte…
Artifizer 82f92b0
feat: implement schema inheritance and composition with schemars inte…
Artifizer a2c6b6f
Merge branch 'GlobalTypeSystem:main' into main
Artifizer 846bb60
fix: fix PlaceOrderDataPayloadV1 example
Artifizer 9dc54a3
Merge branch 'main' of https://github.com/Artifizer/gts-rust
Artifizer fdb6c94
refactor: improve CLI tooling and schema generation
Artifizer 06a7f98
chore: remove schematools dependency
Artifizer 2754dcc
refactor: get rid of compose_schema()
Artifizer e68ab7b
feat: implment maj/min version match for Rust struct and GTS id in st…
Artifizer 2dfa036
feat(gts-macros): add required 'base' attribute for explicit struct i…
Artifizer 90fde15
feat: add generic type constraints to struct_to_gts_schema
Artifizer ffb8df2
fix: use stable toolchain for the build and fix the compilation fail …
Artifizer 934a8b5
fix: use stable toolchain for the build and fix the compilation fail …
Artifizer 3d0a955
fix: use stable toolchain for the build and fix the compilation fail …
Artifizer 5419df8
chore: fix tests and code coverage on stable toolchain to avoid probl…
Artifizer c3cacec
chore: use stable toolchain for all the CI tests
Artifizer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| [package] | ||
| name = "gts-macros-cli" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| authors.workspace = true | ||
| license.workspace = true | ||
| repository.workspace = true | ||
| description = "Demo tool for GTS macros schema introspection and inheritance" | ||
|
|
||
| [lints] | ||
| workspace = true | ||
|
|
||
| [[bin]] | ||
| name = "gts-macros-cli" | ||
| path = "src/main.rs" | ||
|
|
||
| [dependencies] | ||
| gts = { path = "../gts" } | ||
| gts-macros = { path = "../gts-macros" } | ||
| serde.workspace = true | ||
| serde_json.workspace = true | ||
| anyhow.workspace = true | ||
| uuid.workspace = true | ||
| schemars.workspace = true | ||
| clap.workspace = true | ||
|
|
||
| # Include test modules for schema discovery | ||
| [dev-dependencies] | ||
| serde = { workspace = true, features = ["derive"] } | ||
|
|
||
| # Build dependencies | ||
| [build-dependencies] | ||
| serde.workspace = true | ||
| serde_json.workspace = true |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I remember only schemars = "1.1" supports json schema Draft 2020-12