toSchemaDocument

fun EncodingSchema.toSchemaDocument(): SchemaDocument

Converts an EncodingSchema to a SchemaDocument, which may be serialized using SchemaDocumentWriter, validated using validate, and compared with other SchemaDocuments.