[rust-server] add license and description to Cargo.toml#7080
[rust-server] add license and description to Cargo.toml#7080wing328 merged 6 commits intoswagger-api:masterfrom
Conversation
Rust2 was the old name
For rust-server, getting them from the swagger
|
@farcaller @frol - I believe you are the Rust technical committee. Please may you have a look? |
|
LGTM. |
|
It seems that according to #4197, the license for the generated clients should be "Unlicense". |
|
EDIT: looking at #4197, it looks like the defaults for the other generators are actually a mixture of |
|
@frol is right. The default should be "Unlicense". |
|
@bjgill It seems that the license specified in the Swagger Spec file is not the same license as one that is used for the generated client. |
|
@frol I think the license specified in the spec refers to "License information for the exposed API", which may or may not be the same as the license of the auto-generated code. |
…7080) * Move errant file to 'rust-server' Rust2 was the old name * Add license and description to Cargo.toml For rust-server, getting them from the swagger * Valid Java doesn't have uninitialised variables... * Default license to "Unlicense" * Set license to "Unlicense" for generated crates
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.3.0.0branch for changes related to OpenAPI spec 3.0. Default:master.Description of the PR
In
rust-server, we now fill in thelicenseanddescriptionfields.licenseonly appears if present in the swagger;descriptiondefaults to"No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)"This allows the generated crate to be published to crates.io without needing manual modification.