Filling out the following details about bugs will help us solve your issue sooner.
Client code generated.
% openapi-generator generate -i ../slack-api-spec/web-api/slack_web_openapi_v2.json -g go --skip-validate-spec
[main] WARN io.swagger.util.PropertyDeserializer - no property from null, null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=null, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null}
[main] WARN io.swagger.util.PropertyDeserializer - no property from null, null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=null, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null}
[main] WARN io.swagger.util.PropertyDeserializer - no property from null, null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=null, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null}
[main] WARN io.swagger.util.PropertyDeserializer - no property from null, null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=null, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null}
[main] WARN o.o.c.config.CodegenConfigurator - There were issues with the specification, but validation has been explicitly disabled.
Errors:
-attribute definitions.objs_file_object_with_id_only.title is unexpected
-attribute definitions.objs_file_object_with_id_only.additionalProperties is unexpected
-attribute definitions.objs_file_object_with_id_only.type is unexpected
Warnings:
-Unused model: defs_comment_id
-Unused model: defs_ok_false
-Unused model: objs_team
-Unused model: defs_ts
-Unused model: defs_invite_id
-Unused model: defs_room_id
-Unused model: objs_inviting_user
-Unused model: defs_team
-Unused model: defs_group_id
-Unused model: defs_ok_true
-Unused model: objs_file_object_with_id_only
-Unused model: defs_dm_id
-Unused model: defs_bot_id
-Unused model: objs_reaction
-Unused model: objs_comment
-Unused model: defs_topic_purpose_creator
-Unused model: objs_channel
-Unused model: defs_pinned_info
-Unused model: defs_app_id
-Unused model: objs_group
-Unused model: objs_file
-Unused model: objs_im
-Unused model: objs_paging
-Unused model: objs_team_profile_field
-Unused model: objs_conversation
-Unused model: objs_user
-Unused model: objs_dnd
-Unused model: prefs_prefs
-Unused model: objs_scopes
-Unused model: defs_file_id
-Unused model: objs_comments
-Unused model: defs_channel
-Unused model: defs_user_id
-Unused model: objs_message
-Unused model: objs_user_profile
-Unused model: team_prefs_prefs
-Unused model: objs_user_profile_short
-Unused model: defs_channel_name
-Unused model: defs_channel_id
-Unused model: objs_user_profile_shortest
[main] INFO o.o.c.ignore.CodegenIgnoreProcessor - No .openapi-generator-ignore file found.
[main] INFO o.o.c.languages.AbstractGoCodegen - Environment variable GO_POST_PROCESS_FILE not defined so Go code may not be properly formatted. To define it, try `export GO_POST_PROCESS_FILE="/usr/local/bin/gofmt -w"` (Linux/Mac)
[main] INFO o.o.c.languages.AbstractGoCodegen - NOTE: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] INFO o.o.codegen.DefaultGenerator - Model objs_comments not generated since it's an alias to array (without property)
[main] INFO o.o.codegen.DefaultGenerator - Model defs_pinned_info not generated since it's an alias to map (without property)
Exception in thread "main" java.lang.RuntimeException: Could not process model 'team_prefs_prefs'.Please make sure that your schema is correct!
at org.openapitools.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:457)
at org.openapitools.codegen.DefaultGenerator.generate(DefaultGenerator.java:888)
at org.openapitools.codegen.cmd.Generate.run(Generate.java:355)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:62)
Caused by: java.lang.NullPointerException
at org.openapitools.codegen.utils.ModelUtils.isArraySchema(ModelUtils.java:343)
at org.openapitools.codegen.languages.AbstractGoCodegen.getTypeDeclaration(AbstractGoCodegen.java:263)
at org.openapitools.codegen.languages.AbstractGoCodegen.getTypeDeclaration(AbstractGoCodegen.java:266)
at org.openapitools.codegen.DefaultCodegen.fromProperty(DefaultCodegen.java:2006)
at org.openapitools.codegen.DefaultCodegen.addVars(DefaultCodegen.java:3455)
at org.openapitools.codegen.DefaultCodegen.addVars(DefaultCodegen.java:3425)
at org.openapitools.codegen.DefaultCodegen.addVars(DefaultCodegen.java:3412)
at org.openapitools.codegen.DefaultCodegen.fromModel(DefaultCodegen.java:1708)
at org.openapitools.codegen.DefaultGenerator.processModels(DefaultGenerator.java:1126)
at org.openapitools.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:452)
... 3 more