java.lang.Object
io.helidon.openapi.Serializer
Expresses an existing
OpenAPI instance as an OpenAPI document. This implementation uses
SnakeYAML to write OpenAPI documents from the SmallRye MP OpenAPI model interfaces and classes
while suppressing tags that would indicate the SmallRye classes -- we don't want to
suggest that the output can only be read into the SmallRye implementation.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidserialize(Map<Class<?>, ExpandedTypeDescription> types, Map<Class<?>, ExpandedTypeDescription> implsToTypes, OpenAPI openAPI, io.smallrye.openapi.runtime.io.Format fmt, Writer writer) Serialize using the selected format.
-
Method Details
-
serialize
public static void serialize(Map<Class<?>, ExpandedTypeDescription> types, Map<Class<?>, ExpandedTypeDescription> implsToTypes, OpenAPI openAPI, io.smallrye.openapi.runtime.io.Format fmt, Writer writer) Serialize using the selected format.- Parameters:
types- typesimplsToTypes- implementations to typesopenAPI- Open API document to serializefmt- format to usewriter- writer to serialize to
-