Search in sources :

Example 1 with Oas30License

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);
}
Also used : Oas30Info(io.apicurio.datamodels.openapi.v3.models.Oas30Info) Oas30License(io.apicurio.datamodels.openapi.v3.models.Oas30License)

Aggregations

Oas30Info (io.apicurio.datamodels.openapi.v3.models.Oas30Info)1 Oas30License (io.apicurio.datamodels.openapi.v3.models.Oas30License)1