Skip to content

noncheat/swagger_json_filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

import 'package:swagger_json_filter/swagger_json_filter.dart';
final specPath = 'pet.json';
final jsonString = File(specPath).readAsStringSync();

final swaggerJsonFilter = SwaggerJsonFilter(
  options: SwaggerJsonFilterOptions(
      // includeTags: [
      //   RegExp(r'^Include Tag.*'),
      // ],
      // excludeTags: [
      //   RegExp(r'^Exclude Tag$'),
      // ],
      // includePaths: [
      //   RegExp(r'^/api/v1/app/.*'),
      // ],
      // excludePaths: [
      //   RegExp(r'(.*?)'),
      // ],
      ),
);
final output = swaggerJsonFilter.filter(jsonString);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages