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

hashCode int
The hash code for this object.
no setterinherited
parsers List<ApiParser>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compileFile(String specPath, CompilerOptions options) Future<CompileResult>
Reads specPath (JSON or YAML), compiles it, and writes Dart files to options.outputDir.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseOnly(Map<String, dynamic> spec, CompilerOptions options) ApiAst
Parses spec in-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