Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update api/openapi.yaml #4

Open
huy-yearnings opened this issue Jan 16, 2025 · 0 comments
Open

Please update api/openapi.yaml #4

huy-yearnings opened this issue Jan 16, 2025 · 0 comments

Comments

@huy-yearnings
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant