Package dk.mada.jaxrs.openapi
Class Parser
java.lang.Object
dk.mada.jaxrs.openapi.Parser
Parses OpenAPI specification and transforms to local model classes.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Generator options that have leaked into the parser. -
Constructor Summary
ConstructorDescriptionParser
(boolean showInfo, TypeNames typeNames, Naming naming, ParserOpts parserOpts, Parser.LeakedGeneratorOpts leakedGenOpts) Constructs a new parser. -
Method Summary
-
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 outputtypeNames
- the type namesnaming
- the naming instanceparserOpts
- the parser optionsleakedGenOpts
- the leaked generator options
-
-
Method Details
-
parse
Parse the specified OpenApi specification.- Parameters:
spec
- the specification file to parse- Returns:
- the local model representation of the specification
-