Skip to content

[Schema Inaccuracy] attribute components.schemas.[pages-https-certificate|audit-log-event].items is missing #335

Closed
@er1c

Description

@er1c

Schema Inaccuracy

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: 2, Warning count: 0
Errors:
	-attribute components.schemas.pages-https-certificate.items is missing
	-attribute components.schemas.audit-log-event.items is missing

	at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:546)
	at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:573)
	at org.openapitools.codegen.cmd.Generate.execute(Generate.java:433)
	at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
	at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)

Expected

I expected the schema to pass the opentools validation.

Reproduction Steps

curl -o api.github.com.v3.1.yaml \
  https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.1/ghes-3.1.yaml

docker run --rm \
    -v $PWD:/local openapitools/openapi-generator-cli generate \
    -i /local/api.github.com.v3.1.yaml \
    -g scala-sttp \
    -o /local/client/github

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions