From 51086e30d5111e649a3523cc2642ffc899546551 Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Sun, 4 Aug 2024 02:12:26 -0700 Subject: [PATCH] add(conduit): adding openapi refactor --- packages/openapi/.gitignore | 7 +++++ packages/openapi/CHANGELOG.md | 3 ++ packages/openapi/README.md | 39 ++++++++++++++++++++++++++ packages/openapi/analysis_options.yaml | 30 ++++++++++++++++++++ packages/openapi/example/.gitkeep | 0 packages/openapi/lib/src/.gitkeep | 0 packages/openapi/lib/v2.dart | 7 +++++ packages/openapi/lib/v3.dart | 7 +++++ packages/openapi/pubspec.yaml | 17 +++++++++++ packages/openapi/test/.gitkeep | 0 10 files changed, 110 insertions(+) create mode 100644 packages/openapi/.gitignore create mode 100644 packages/openapi/CHANGELOG.md create mode 100644 packages/openapi/README.md create mode 100644 packages/openapi/analysis_options.yaml create mode 100644 packages/openapi/example/.gitkeep create mode 100644 packages/openapi/lib/src/.gitkeep create mode 100644 packages/openapi/lib/v2.dart create mode 100644 packages/openapi/lib/v3.dart create mode 100644 packages/openapi/pubspec.yaml create mode 100644 packages/openapi/test/.gitkeep diff --git a/packages/openapi/.gitignore b/packages/openapi/.gitignore new file mode 100644 index 0000000..3cceda5 --- /dev/null +++ b/packages/openapi/.gitignore @@ -0,0 +1,7 @@ +# https://dart.dev/guides/libraries/private-files +# Created by `dart pub` +.dart_tool/ + +# Avoid committing pubspec.lock for library packages; see +# https://dart.dev/guides/libraries/private-files#pubspeclock. +pubspec.lock diff --git a/packages/openapi/CHANGELOG.md b/packages/openapi/CHANGELOG.md new file mode 100644 index 0000000..effe43c --- /dev/null +++ b/packages/openapi/CHANGELOG.md @@ -0,0 +1,3 @@ +## 1.0.0 + +- Initial version. diff --git a/packages/openapi/README.md b/packages/openapi/README.md new file mode 100644 index 0000000..8b55e73 --- /dev/null +++ b/packages/openapi/README.md @@ -0,0 +1,39 @@ + + +TODO: Put a short description of the package here that helps potential users +know whether this package might be useful for them. + +## Features + +TODO: List what your package can do. Maybe include images, gifs, or videos. + +## Getting started + +TODO: List prerequisites and provide or point to information on how to +start using the package. + +## Usage + +TODO: Include short and useful examples for package users. Add longer examples +to `/example` folder. + +```dart +const like = 'sample'; +``` + +## Additional information + +TODO: Tell users more about the package: where to find more information, how to +contribute to the package, how to file issues, what response they can expect +from the package authors, and more. diff --git a/packages/openapi/analysis_options.yaml b/packages/openapi/analysis_options.yaml new file mode 100644 index 0000000..dee8927 --- /dev/null +++ b/packages/openapi/analysis_options.yaml @@ -0,0 +1,30 @@ +# This file configures the static analysis results for your project (errors, +# warnings, and lints). +# +# This enables the 'recommended' set of lints from `package:lints`. +# This set helps identify many issues that may lead to problems when running +# or consuming Dart code, and enforces writing Dart using a single, idiomatic +# style and format. +# +# If you want a smaller set of lints you can change this to specify +# 'package:lints/core.yaml'. These are just the most critical lints +# (the recommended set includes the core lints). +# The core lints are also what is used by pub.dev for scoring packages. + +include: package:lints/recommended.yaml + +# Uncomment the following section to specify additional rules. + +# linter: +# rules: +# - camel_case_types + +# analyzer: +# exclude: +# - path/to/excluded/files/** + +# For more information about the core and recommended set of lints, see +# https://dart.dev/go/core-lints + +# For additional information about configuring this file, see +# https://dart.dev/guides/language/analysis-options diff --git a/packages/openapi/example/.gitkeep b/packages/openapi/example/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/packages/openapi/lib/src/.gitkeep b/packages/openapi/lib/src/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/packages/openapi/lib/v2.dart b/packages/openapi/lib/v2.dart new file mode 100644 index 0000000..1325848 --- /dev/null +++ b/packages/openapi/lib/v2.dart @@ -0,0 +1,7 @@ +/// Support for doing something awesome. +/// +/// More dartdocs go here. +library; + + +// TODO: Export any libraries intended for clients of this package. diff --git a/packages/openapi/lib/v3.dart b/packages/openapi/lib/v3.dart new file mode 100644 index 0000000..1325848 --- /dev/null +++ b/packages/openapi/lib/v3.dart @@ -0,0 +1,7 @@ +/// Support for doing something awesome. +/// +/// More dartdocs go here. +library; + + +// TODO: Export any libraries intended for clients of this package. diff --git a/packages/openapi/pubspec.yaml b/packages/openapi/pubspec.yaml new file mode 100644 index 0000000..1615c44 --- /dev/null +++ b/packages/openapi/pubspec.yaml @@ -0,0 +1,17 @@ +name: protevus_openapi +description: The openapi specification for the Protevus Platform +version: 0.0.1 +homepage: https://protevus.com +documentation: https://docs.protevus.com +repository: https://git.protevus.com/protevus/platform + +environment: + sdk: ^3.4.3 + +# Add regular dependencies here. +dependencies: + # path: ^1.8.0 + +dev_dependencies: + lints: ^3.0.0 + test: ^1.24.0 diff --git a/packages/openapi/test/.gitkeep b/packages/openapi/test/.gitkeep new file mode 100644 index 0000000..e69de29