Skip to content

Error when parsing the swagger.json by ArgoCDΒ #1227

@Saeden

Description

@Saeden

Hi all!

Wanted to try out generating a client for ArgoCD in rust using the swagger.json provided by them for their api. But when calling

fn main() {
    generate_api!(
        spec = "swagger.json",
        interface = Builder,
    );
}

I get the following error:

error: failed to parse *****/swagger.json: paths: no variant of enum ParameterSchemaOrContent found in flattened data at line 14 column 12
 --> src/main.rs:5:16
  |
5 |         spec = "swagger.json", // The OpenAPI document
  |                ^^^^^^^^^^^^^^

Is there something I can do to solve this error? Here is the swagger.json for reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions