You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: 3, Warning count: 0
Errors:
-attribute paths.'//rest.example.braze.com/catalogs/{catalog_name}/items'(patch).requestBody.content with no media type is unsupported
-attribute paths.'//rest.example.braze.com/catalogs'(post).requestBody.content with no media type is unsupported
-attribute paths.'//rest.example.braze.com/catalogs/{catalog_name}/items'(post).requestBody.content with no media type is unsupported
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:620)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:647)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:479)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Exception in thread "main" java.lang.RuntimeException: Could not process operation:
Tag: class Tag {
name: Catalogs > Catalog Management > Synchronous
description: null
externalDocs: null
}
Operation: null
Resource: post //rest.example.braze.com/catalogs
Schemas: {}
Exception: Request body cannot be null. Possible cause: missing schema in body parameter (OAS v2): class RequestBody {
description: null
content: null
required: null
}
at org.openapitools.codegen.DefaultGenerator.processOperation(DefaultGenerator.java:1221)
at org.openapitools.codegen.DefaultGenerator.processPaths(DefaultGenerator.java:1115)
at org.openapitools.codegen.DefaultGenerator.generateApis(DefaultGenerator.java:586)
at org.openapitools.codegen.DefaultGenerator.generate(DefaultGenerator.java:949)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:487)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Caused by: java.lang.RuntimeException: Request body cannot be null. Possible cause: missing schema in body parameter (OAS v2): class RequestBody {
description: null
content: null
required: null
}
at org.openapitools.codegen.DefaultCodegen.fromRequestBody(DefaultCodegen.java:7362)
at org.openapitools.codegen.DefaultCodegen.fromOperation(DefaultCodegen.java:4489)
at org.openapitools.codegen.DefaultGenerator.processOperation(DefaultGenerator.java:1189)
... 6 more
Expected Behavior
openapi-generator
generates spec without issuesActual Behavior
openapi-generator
throws error:Steps to Reproduce
Reproducible Demo
N/A
Environment
Keywords
openapi, error, exception
The text was updated successfully, but these errors were encountered: