Search in sources :

Example 1 with Info

use of com.reprezen.kaizen.oasparser.model3.Info in project cobigen by devonfw.

the class OpenAPIInputReader method extractInfo.

/**
 * @param openApi document root
 * @return an object of {@link InfoDef}
 */
private InfoDef extractInfo(OpenApi3 openApi) {
    InfoDef info = new InfoDef();
    Info inf = openApi.getInfo();
    info.setDescription(inf.getDescription());
    info.setTitle(inf.getTitle());
    return info;
}
Also used : InfoDef(com.devonfw.cobigen.openapiplugin.model.InfoDef) Info(com.reprezen.kaizen.oasparser.model3.Info)

Aggregations

InfoDef (com.devonfw.cobigen.openapiplugin.model.InfoDef)1 Info (com.reprezen.kaizen.oasparser.model3.Info)1