Search in sources :

Example 1 with Oas30Paths

use of io.apicurio.datamodels.openapi.v3.models.Oas30Paths in project apicurio-data-models by Apicurio.

the class Oas20to30TransformationVisitor method visitPathItem.

/**
 * @see io.apicurio.datamodels.openapi.visitors.IOasVisitor#visitPathItem(io.apicurio.datamodels.openapi.models.OasPathItem)
 */
@Override
public void visitPathItem(OasPathItem node) {
    Oas30Paths paths30 = (Oas30Paths) this.lookup(node.parent());
    Oas30PathItem pathItem30 = (Oas30PathItem) paths30.createPathItem(node.getPath());
    paths30.addPathItem(node.getPath(), pathItem30);
    pathItem30.$ref = this.updateRef(node.$ref);
    this.mapNode(node, pathItem30);
}
Also used : Oas30Paths(io.apicurio.datamodels.openapi.v3.models.Oas30Paths) Oas30PathItem(io.apicurio.datamodels.openapi.v3.models.Oas30PathItem)

Aggregations

Oas30PathItem (io.apicurio.datamodels.openapi.v3.models.Oas30PathItem)1 Oas30Paths (io.apicurio.datamodels.openapi.v3.models.Oas30Paths)1