A framework for building convergent cross-platform Nextcloud clients using Flutter.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Nikolas Rimikis a758d6ada5
feat(dynamite): allow per spec configuration
1 year ago
..
lib feat(dynamite): allow per spec configuration 1 year ago
test fix(dynamite,nextcloud): fix generics in nested built_collection build factories 1 year ago
LICENSE chore: Move license file 1 year ago
README.md feat(dynamite): allow per spec configuration 1 year ago
analysis_options.yaml chore(app,dynamite,dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,neon_lints,nextcloud,sort_box): use custom neon_lints package 1 year ago
build.yaml refactor(dynamite): Use built_value for OpenAPI specification models 1 year ago
pubspec.yaml chore(deps): update dependency built_value_generator to ^8.7.0 1 year ago
pubspec_overrides.yaml chore(app,dynamite,dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,neon_lints,nextcloud,sort_box): use custom neon_lints package 1 year ago

README.md

Provides a Dart Build System builder for generating clients from an OpenAPI specifications.

The builder generates code if it find files with an .openapi.json or .openapi.yaml extension in the lib directory.

Build configuration

You can configure code generation by setting values in the build.yaml.

targets:
  $default:
    builders:
      dynamite:
        options:
          # Options configure how source code is generated.
          #
          # The following are sensible default values that ignores the schemas for the coverage.
          pageWidth: 120
          analyzer_ignores:
            - camel_case_types
            - discarded_futures
            - public_member_api_docs
            - unreachable_switch_case
          coverage_ignores:
            - 'const .*\._\(\);'
            - 'factory .*\.fromJson\(Map<String, dynamic> json\) => _jsonSerializers\.deserializeWith\(serializer, json\)!;'
            - 'Map<String, dynamic> toJson\(\) => _jsonSerializers\.serializeWith\(serializer, this\)! as Map<String, dynamic>;'
            - 'static BuiltSet<.*> get values => _\$.*Values;'
          overrides:
            # Tighten linting rules for specific specs
            lib/my_spec.openapi.json:
              analyzer_ignores:
                - camel_case_types