SchemaConverter

public struct SchemaConverter : Converting

Converter: Takes the parsed OpenAPI document (from OpenAPIKit) and creates Model objects. These objects contain the template to be exported as a Swift file.

  • Declaration

    Swift

    var resolvedDocument: ResolvedDocument
  • Content of this converter

    Declaration

    Swift

    var schemas: [Schema]
  • Undocumented

    Declaration

    Swift

    init(_ resolvedDocument: ResolvedDocument)
  • Declaration

    Swift

    mutating func writeToFile(path outputPath: Path) throws -> [URL]
  • Returns the schema by its identification

    Declaration

    Swift

    func getSchema(name: String) -> Schema?

    Parameters

    name

    name of schema

    Return Value

    schema object

  • Declaration

    Swift

    mutating func parse()