use of io.apicurio.datamodels.openapi.v3.models.Oas30License in project apicurio-data-models by Apicurio.
the class Oas20to30TransformationVisitor method visitLicense.
/**
* @see io.apicurio.datamodels.core.visitors.IVisitor#visitLicense(io.apicurio.datamodels.core.models.common.License)
*/
@Override
public void visitLicense(License node) {
Oas30Info info30 = (Oas30Info) this.lookup(node.parent());
Oas30License license30 = (Oas30License) info30.createLicense();
info30.license = license30;
license30.name = node.name;
license30.url = node.url;
this.mapNode(node, license30);
}
Aggregations