Skip to content

Please update api/openapi.yaml #4

@huy-yearnings

Description

@huy-yearnings

The OpenAPI spec file seems to be outdated. Some new endpoints listed here does not exist in this spec file. Also, I could not generate REST API client with @openapitools/openapi-generator-cli

Generate command

npx @openapitools/openapi-generator-cli generate --input-spec="spec_config/trulioo_api_v3.yaml" --output="/trulioo" --generator-name="rust" --package-name="trulioo_client"

Error

[[v3.0] spec_config/trulioo_api_v3.yaml] Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
[[v3.0] spec_config/trulioo_api_v3.yaml]  | Error count: 1, Warning count: 8
[[v3.0] spec_config/trulioo_api_v3.yaml] Errors: 
[[v3.0] spec_config/trulioo_api_v3.yaml]        -attribute paths.'/v3/configuration/alldatasources/{packageID}'(get).responses.200.content.'application/json'.schema.#/components/schemas/NormalizedDatasourceGroupsWithCountry is missing
[[v3.0] spec_config/trulioo_api_v3.yaml] Warnings: 
[[v3.0] spec_config/trulioo_api_v3.yaml]        -attribute paths.'/v3/configuration/alldatasources/{packageID}'(get).responses.200.content.'application/json'.schema.#/components/schemas/NormalizedDatasourceGroupsWithCountry is missing
[[v3.0] spec_config/trulioo_api_v3.yaml] 
[[v3.0] spec_config/trulioo_api_v3.yaml]        at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:717)
[[v3.0] spec_config/trulioo_api_v3.yaml]        at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:744)
[[v3.0] spec_config/trulioo_api_v3.yaml]        at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527)
[[v3.0] spec_config/trulioo_api_v3.yaml]        at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
[[v3.0] spec_config/trulioo_api_v3.yaml]        at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
[[v3.0] spec_config/trulioo_api_v3.yaml] java -jar "/root/.nvm/versions/node/v20.16.0/lib/node_modules/@openapitools/openapi-generator-cli/versions/7.9.0.jar" generate --input-spec="/home/huytran/freelance/yearnings_backend/openapi_clients/trulioo/spec_config/trulioo_api_v3.yaml" --output="/home/huytran/freelance/yearnings_backend/openapi_clients/trulioo/../__generated/trulioo" --generator-name="rust" --package-name="trulioo_client" --type-mappings="date=chrono::NaiveDate,DateTime=chrono::NaiveDateTime" exited with code 1
[v3.0] spec_config/trulioo_api_v3.yaml

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