Skip to content

Commit

Permalink
Rewrite struct and path generation (#22)
Browse files Browse the repository at this point in the history
* Rewrite struct and path generation

* Fix readme being written to wrong dir

* update version number in Cargo.toml

* Add integer limit matching

* Add JSON body params

* update version number in cargo.lock

* make all typ fields public

* Switch to string builder, Response enum deserialization

* Correctly handle response codes

* update version number in specfile

---------

Co-authored-by: ByteOtter <[email protected]>
  • Loading branch information
marv7000 and ByteOtter authored Feb 26, 2024
1 parent 13ad317 commit cf7c7b3
Show file tree
Hide file tree
Showing 13 changed files with 499 additions and 399 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/target
/output
/thanix_client

# IDE files
.vs/
.vscode/
.idea/
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This will ensure that you have all the necessary tools and libraries to build an
4. **Install and set up pre-commit for code quality checks**. This tool will automatically execute the `hooks` we implemented
which will check your code for formatting or styling issue before each commit.

Note: If `pre-commit` fails on execution, be sure to run `cargo format` and `cargo clippy` on your code and fix any issues
Note: If `pre-commit` fails on execution, be sure to run `cargo fmt` and `cargo clippy` on your code and fix any issues
raised by these tools.

# Making changes
Expand Down
33 changes: 32 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "thanix"
authors = ["Christopher Hock <[email protected]>"]
version = "0.1.0-alpha.9"
version = "0.1.0-alpha.10"
publish = true
edition = "2021"
description = "A yaml-to-rust code generator for generating Rust code from yaml config files e.g. as found in openAPI."
Expand All @@ -12,7 +12,9 @@ license = "GPL-3.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
check_keyword = "0.2.0"
clap = {version = "4.4.2", features = ["derive"]}
convert_case = "0.6.0"
openapiv3 = "2.0.0"
serde = { version = "1.0.195", features = ["derive"] }
serde_yaml = "0.9.30"
2 changes: 1 addition & 1 deletion Thanix.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: Thanix
Version: 0.1.0_alpha.9
Version: 0.1.0_alpha.10
Release: 0.1
Summary: Rust to yaml code generator.
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
Expand Down
Loading

0 comments on commit cf7c7b3

Please sign in to comment.