gnostic-analyze

command
v0.0.0-...-be65273 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

gnostic-analyze

This directory contains a gnostic plugin that analyzes an OpenAPI description for factors that might influence code generation and other API automation.

The plugin can be invoked like this:

gnostic bookstore.json --analyze_out=.

This will write analysis results to a file in the current directory. Results are written to a file named summary.json.

The plugin can be applied to a directory of descriptions using a command like the following:

find APIs -name "swagger.yaml" -exec gnostic --analyze_out=analysis {} \;

This finds all swagger.yaml files in a directory named APIs and its subdirectories and writes corresponding summary.json files into a directory named analysis.

Results of multiple analysis runs can be gathered together and summarized using the summarize program, which is in the summarize subdirectory. Just run summarize in the same location as the find command shown above.

Documentation

Overview

gnostic_analyze is a tool for analyzing OpenAPI descriptions.

It scans an API description and evaluates properties that influence the ease and quality of code generation.

  • The number of HTTP operations of each method (GET, POST, etc).
  • The number of HTTP operations with no OperationId value.
  • The parameter types used and their frequencies.
  • The response types used and their frequencies.
  • The types used in definition objects and arrays and their frequencies.

Results are returned in a JSON structure.

Directories

Path Synopsis
summarize is a tool for summarizing the results of gnostic_analyze runs.
summarize is a tool for summarizing the results of gnostic_analyze runs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL