Skip to main content
Version: AMF v5.x.x

Rendering

Rendering is the process of exporting an AMF API Contract Model to a specific format. Any AMF model can be rendered as a standard JSON-LD or RDF graph. Additionally, in the case of the API Contract Model, it can also be exported to RAML, OAS and AsyncAPI:

emission-graph

Each rendering has limitations, as some elements may be unique to a specification and can't be represented in others.

AMF intends to support additional specifications as they become available.

You can find more technical information in the related documentation about AMF Conversion.

Rendering Examples

How to render a DomainElement:


Code extracted from the examples GitHub repository.


How to render from a stream:


Code extracted from the examples GitHub repository.