@Test public void generateExampleScenario() { OpenAPI openAPI = createTestGenerator().generate( OpenApiGeneratorConfigBuilder.defaultConfig() .withGenerateExamples(true) .withOpenApiExampleResolver(createExampleResolver()) .build() ); assertOpenApiResult(openAPI, "expected_example_openapi.json"); }
public OpenAPI generate() { return generate(OpenApiGeneratorConfigBuilder.defaultConfig().build()); }
OpenAPIGenerator { public OpenAPI generate() { return generate(OpenApiGeneratorConfigBuilder.defaultConfig().build()); } }
OpenAPIGenerator { public OpenAPI generate() { return generate(OpenApiGeneratorConfigBuilder.defaultConfig().build()); } OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors,
                            OperationFilter operationFilter,
                            OperationParameterFilter operationParameterFilter,
                            SchemaFieldFilter schemaFieldFilter); }
OpenAPIGenerator { public OpenAPI generate() { return generate(OpenApiGeneratorConfigBuilder.defaultConfig().build()); } OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors,
                            OperationFilter operationFilter,
                            OperationParameterFilter operationParameterFilter,
                            SchemaFieldFilter schemaFieldFilter); OpenAPI generate(); OpenAPI generate(OpenApiGeneratorConfig openApiGeneratorConfig); void addSchemaInterceptor(SchemaInterceptor schemaInterceptor); void addSchemaFieldInterceptor(SchemaFieldInterceptor schemaFieldInterceptor); void addOperationParameterInterceptor(OperationParameterInterceptor operationParameterInterceptor); void addOperationInterceptor(OperationInterceptor operationInterceptor); void addRequestBodyInterceptor(RequestBodyInterceptor requestBodyInterceptor); void addGlobalHeader(String name, String description, boolean required); void setOperationFilter(OperationFilter operationFilter); void setOperationParameterFilter(OperationParameterFilter operationParameterFilter); void setSchemaFieldFilter(SchemaFieldFilter schemaFieldFilter); SchemaGeneratorHelper getSchemaGeneratorHelper(); }
OpenAPIGenerator { public OpenAPI generate() { return generate(OpenApiGeneratorConfigBuilder.defaultConfig().build()); } OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors,
                            OperationFilter operationFilter,
                            OperationParameterFilter operationParameterFilter,
                            SchemaFieldFilter schemaFieldFilter); OpenAPI generate(); OpenAPI generate(OpenApiGeneratorConfig openApiGeneratorConfig); void addSchemaInterceptor(SchemaInterceptor schemaInterceptor); void addSchemaFieldInterceptor(SchemaFieldInterceptor schemaFieldInterceptor); void addOperationParameterInterceptor(OperationParameterInterceptor operationParameterInterceptor); void addOperationInterceptor(OperationInterceptor operationInterceptor); void addRequestBodyInterceptor(RequestBodyInterceptor requestBodyInterceptor); void addGlobalHeader(String name, String description, boolean required); void setOperationFilter(OperationFilter operationFilter); void setOperationParameterFilter(OperationParameterFilter operationParameterFilter); void setSchemaFieldFilter(SchemaFieldFilter schemaFieldFilter); SchemaGeneratorHelper getSchemaGeneratorHelper();  }