Search packages, repositories and app categories

Package detailsv1.1.0

swagger_parser_core

Typed Swagger and OpenAPI models with JSON/YAML parsing, validation, and reference resolution for swagger_parser.

AndroidiOSLinuxmacOSWebWindows
30-day downloads
16K
Likes
0
Pub points
160

Install package

flutter pub add swagger_parser_core

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Swagger Parser

pub version pub likes dart style Star on Github Last commit on Github Tests

Swagger Parser is a Dart package that takes an OpenApi definition file and generates REST clients based on retrofit and data classes for your project.

  • Supports OpenApi v2, v3.0 and v3.1
  • Can generate files from JSON and YAML format
  • Generation by definition link or from file
  • Support for multiple definitions
  • Supports Dart and Kotlin

We also have a web interface so you can try out swagger parser: https://carapacik.github.io/swagger_parser

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.

Rankings