Module serializer

Module serializer 

Source
Expand description

Serialization module for converting OpenAPI documents to YAML or JSON format.

This module provides functions to serialize OpenAPI documents into standard formats and write them to files or return them as strings.

Functionsยง

serialize_json
Serializes an OpenAPI document to JSON format with pretty printing.
serialize_yaml
Serializes an OpenAPI document to YAML format.
write_to_file
Writes string content to a file.