openapi_types 2.0.1 copy "openapi_types: ^2.0.1" to clipboard
openapi_types: ^2.0.1 copied to clipboard

A Dart package providing OpenAPI types and utilities for API documentation.

example/example.dart

import 'package:openapi_types/openapi_types.dart';

void main(List<String> arguments) {
  final _ = DocumentV31(
    info: const InfoObjectV31(title: 'Demo', version: '1.0.0'),
    structure: PathsWebhooksComponentsV31(
      paths: {
        '/ping': PathItemObjectV31(
          operations: {
            'get': OperationObjectV31(
              responses: ResponsesV3({
                200: ResponseObjectV3(description: 'pong'),
              }),
            ),
          },
        ),
      },
    ),
  );
}
0
likes
150
points
667
downloads

Publisher

verified publisherserinus.app

Weekly Downloads

A Dart package providing OpenAPI types and utilities for API documentation.

Repository (GitHub)
View/report issues

Topics

#dart #openapi #api #documentation #swagger

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

yaml, yaml_writer

More

Packages that depend on openapi_types