Class OpenAPIConfigHelper


  • public class OpenAPIConfigHelper
    extends Object
    • Method Detail

      • fillWithDefaultValue

        public static void fillWithDefaultValue​(io.swagger.v3.oas.models.OpenAPI openapi,
                                                String topLevelElement,
                                                org.json.JSONObject configJsonObj)
        It will walk through all properties in schema and insert default value / null into json if property not found.
        Parameters:
        openapi -
        topLevelElement -
        configJsonObj -