A Dart package for parsing, validating, and resolving references in Swagger and OpenAPI specifications. It supports both JSON and YAML formats, enabling developers to work with typed models derived from OpenAPI definitions. The package ensures accurate schema interpretation and handles complex reference resolution, making it ideal for generating client code or validating API contracts programmatically. Built for cross-platform use, it integrates seamlessly into Flutter and other Dart applications across Android, iOS, Linux, macOS, Web, and Windows.
Use cases
- Generating API clients from OpenAPI specs
- Validating API contract integrity
- Resolving $ref references in OpenAPI documents
- Automating documentation workflows
- Integrating OpenAPI validation into CI/CD pipelines
Key features
- Supports JSON and YAML OpenAPI/Swagger formats
- Typed model generation from OpenAPI specs
- Reference ($ref) resolution
- Built-in validation logic
- Cross-platform compatibility
Suitable for
- API tooling developers
- Backend service integrators
- CI/CD pipeline builders
- Documentation automation teams
- Flutter apps needing OpenAPI integration
Considerations
- Requires valid OpenAPI/Swagger input
- May need additional handling for custom extensions
- Limited to parsing and validation, not runtime API execution
- Best used with generated code or static analysis tools
- Not a full SDK generator on its own