NebulaCompiler class
The main compiler facade.
parsers — list of ApiParsers tried in order; first match wins. The default list covers OpenAPI 3.x and Swagger 2.0.
Constructors
-
NebulaCompiler({List<
ApiParser> ? parsers, CodeEmitter? emitter})
Properties
Methods
-
compileFile(
String specPath, CompilerOptions options) → Future< CompileResult> -
Reads
specPath(JSON or YAML), compiles it, and writes Dart files tooptions.outputDir. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseOnly(
Map< String, dynamic> spec, CompilerOptions options) → ApiAst -
Parses
specin-memory and returns the optimised ApiAst without writing any files. Useful for testing and tooling. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited