Ekapp/swagger/docs/helpers.md

397 B

getEditorMetadata

getEditorMetadata is a method that allows you to get information about the Editor's state without reaching directly into the plugin system.

Example:

const editor = SwaggerEditor({ /* your configuration here */ })

SwaggerEditor.getEditorMetadata()

Result:

{
  contentString: String,
  contentObject: Object,
  isValid: Boolean,
  errors: Array,
}