Class OpenApiGenerator.Builder

    • Method Detail

      • withDefaultProvideRuntimeContext

        public OpenApiGenerator.Builder withDefaultProvideRuntimeContext​(boolean provideRuntimeContext)
        If runtime context must be included to OpenAPI schema or not by default. Takes effect only if isProvideRuntimeContext is not provided in rules-deploy.xml
        Parameters:
        provideRuntimeContext - include runtime context to OpenAPI or not
        Returns:
        current builder instance
      • withDefaultProvideVariations

        public OpenApiGenerator.Builder withDefaultProvideVariations​(boolean provideVariations)
        If variations endpoints must be included to OpenAPI schema or not by default. Takes effect only if isProvideVariations is not provided in rules-deploy.xml
        Parameters:
        provideVariations - include variations endpoints to OpenAPI or not
        Returns:
        current builder instance
      • generator

        public OpenApiGenerator generator()
                                   throws org.openl.rules.project.instantiation.RulesInstantiationException
        Creates new instance of OpenApiGenerator
        Returns:
        new instance of OpenApiGenerator
        Throws:
        org.openl.rules.project.instantiation.RulesInstantiationException - in case of compilation errors