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

Latest SDK generation on master push fail #1452

Closed
Junjiequan opened this issue Oct 22, 2024 · 1 comment
Closed

Latest SDK generation on master push fail #1452

Junjiequan opened this issue Oct 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Junjiequan
Copy link
Contributor

Junjiequan commented Oct 22, 2024

openapi SDK generator throws the following error for the push on master branch.
The issue is most likely is due to the required: false in published-data.schema.ts file.


Digest: sha256:7b4d65f91150ab7a572d7ee6835795ecad7a62e5d694f0685c8dbc4d29c41d20
Status: Downloaded newer image for openapitools/openapi-generator-cli:latest
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).
 | Error count: 12, Warning count: 0
Errors: 
	-paths.For path parameter sizeOfArchive the required value should be true
	-paths.For path parameter thumbnail the required value should be true
	-paths.For path parameter downloadLink the required value should be true
	-paths.For path parameter authors the required value should be true
	-paths.For path parameter affiliation the required value should be true
	-paths.For path parameter registeredTime the required value should be true
	-paths.For path parameter relatedPublications the required value should be true
	-paths.For path parameter url the required value should be true
	-paths.For path parameter scicatUser the required value should be true
	-paths.For path parameter doi the required value should be true
	-paths.For path parameter status the required value should be true
	-paths.For path parameter numberOfFiles the required value should be true

	at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:717)
	at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:[74](https://github.com/SciCatProject/scicat-backend-next/actions/runs/11461049498/job/31893694382#step:4:76)4)
	at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527)
	at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
	at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)

@Junjiequan Junjiequan added the bug Something isn't working label Oct 22, 2024
@Junjiequan
Copy link
Contributor Author

Fixed on PR #1455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant