Class Parser

java.lang.Object
dk.mada.jaxrs.openapi.Parser

public final class Parser extends Object
Parses OpenAPI specification and transforms to local model classes.
  • Constructor Details

    • Parser

      public Parser(boolean showInfo, TypeNames typeNames, Naming naming, ParserOpts parserOpts, Parser.LeakedGeneratorOpts leakedGenOpts)
      Constructs a new parser.
      Parameters:
      showInfo - flag to enable parser info output
      typeNames - the type names
      naming - the naming instance
      parserOpts - the parser options
      leakedGenOpts - the leaked generator options
  • Method Details

    • parse

      public Model parse(Path spec)
      Parse the specified OpenApi specification.
      Parameters:
      spec - the specification file to parse
      Returns:
      the local model representation of the specification