Skip to content

[Rust] Implement 'object' type conversion#6846

Merged
wing328 merged 3 commits intoswagger-api:masterfrom
euank:rust-val
Nov 1, 2017
Merged

[Rust] Implement 'object' type conversion#6846
wing328 merged 3 commits intoswagger-api:masterfrom
euank:rust-val

Conversation

@euank
Copy link
Copy Markdown
Contributor

@euank euank commented Oct 29, 2017

This contains 2 fixes for the rust codegen.

First, the TODO for "Object" was replaced with the serde_json::Value type.
This at least makes it compile; I haven't ensured runtime functionality is correct, but it's certainly no worse than before.

Second, I've updated the provided Cargo.toml to include rough version selectors. They correspond to what it's picking now, but will future-proof it a bit more against external crate changes.

cc @frol @farcaller

euank added 2 commits October 29, 2017 15:09
This hopefully fixes the previous TODO; it at least fixes compilation
errors for the specific swagger model I'm working with.
Letting the version float freely is scary, to say the least.

This gives it a better chance at being future-proof.

When the crate author had a recommended selector I picked that,
otherwise I went semver compatible.
@euank euank changed the title Rust val [Rust] Implement 'object' type conversion Oct 30, 2017
@frol
Copy link
Copy Markdown
Contributor

frol commented Oct 30, 2017

LGTM

1 similar comment
@farcaller
Copy link
Copy Markdown
Contributor

LGTM

@wing328 wing328 added this to the v2.3.0 milestone Nov 1, 2017
@wing328 wing328 merged commit c97b63d into swagger-api:master Nov 1, 2017
@euank euank deleted the rust-val branch November 2, 2017 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants