openapi_spec 0.8.2 copy "openapi_spec: ^0.8.2" to clipboard
openapi_spec: ^0.8.2 copied to clipboard

OpenAPI Specification generator using native Dart code, as well as an all-in-one parser of existing specifications.

example/example.dart

import 'package:openapi_spec/openapi_spec.dart';

void main() async {
  // ==========================================
  // Define the spec
  // ==========================================

  final spec = OpenApi(
    info: Info(
      title: 'My API',
      version: '1.0.0',
    ),
  );

  // ==========================================
  // Export to Swagger UI
  // ==========================================

  await spec.toSwaggerUI(
    destination: './build/swagger_ui',
    replace: true,
  );
}
copied to clipboard
6
likes
140
points
2.33k
downloads

Publisher

verified publishertazatechnology.com

Weekly Downloads

2024.09.16 - 2025.03.31

OpenAPI Specification generator using native Dart code, as well as an all-in-one parser of existing specifications.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

args, cli_completion, collection, freezed_annotation, http, intl, json_annotation, mason_logger, path, pub_updater, recase, yaml

More

Packages that depend on openapi_spec