@NotThreadSafe public class ModelGenerator extends Object
| Constructor and Description |
|---|
ModelGenerator() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
convertToJsonSchema(org.opendaylight.yangtools.yang.model.api.Module module,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
Creates Json models from provided module according to swagger spec.
|
public com.fasterxml.jackson.databind.node.ObjectNode convertToJsonSchema(org.opendaylight.yangtools.yang.model.api.Module module,
org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
throws IOException
module - - Yang module to be convertedschemaContext - - SchemaContext of all Yang files used by Api DocIOException - if I/O operation failsCopyright © 2018 OpenDaylight. All rights reserved.