octri_openapi_parser 0.1.2
octri_openapi_parser: ^0.1.2 copied to clipboard
Dart native bindings for the Octri Rust OpenAPI parser.
Octri OpenAPI Parser for Dart #
Live demo · Validate, parse, bundle and dereference Swagger 2.0 and OpenAPI 3.0, 3.1 and 3.2 documents with Octri's Rust parser.
dart pub add octri_openapi_parser
import 'package:octri_openapi_parser/octri_openapi_parser.dart';
final report = Parser().analyze(Source.text(specText));
The package bundles the native library.
Supported platforms: Linux x64 and arm64 (glibc 2.36 or later) and macOS arm64. On other platforms, build
liboctri_parser_ffi from the repository and pass its path
to the constructor.
Runs on the Dart VM. A dart compile exe binary cannot read package files: ship the library beside it and pass its path to Parser.
Options, report shapes and the runtime contract are documented in the bindings guide. Licensed under Apache-2.0; the bundled library's third-party notices ship with the package.