openapi_spec 0.7.24 copy "openapi_spec: ^0.7.24" to clipboard
openapi_spec: ^0.7.24 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,
  );
}
6
likes
130
points
1.6k
downloads

Publisher

verified publishertazatechnology.com

Weekly Downloads

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