openapi_spec 0.3.2 copy "openapi_spec: ^0.3.2" to clipboard
openapi_spec: ^0.3.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,
  );
}
3
likes
0
pub points
56%
popularity

Publisher

verified publishertazatechnology.com

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

License

unknown (LICENSE)

Dependencies

collection, freezed_annotation, http, intl, json_annotation, path, recase, yaml

More

Packages that depend on openapi_spec