Skip to content

v0.4.0

Compare
Choose a tag to compare
@hahwul hahwul released this 15 Aug 14:51
· 644 commits to main since this release

Noir now supports Swagger analysis. When Swagger documents are detected in the target source code, the tool analyzes those files to identify and extract endpoints.

Release note

  • Support Swagger Analysis
    • Module: Detector, Analyzer
    • Format: JSON, YAML
  • Improve codes (Kemal detector, spec codes)
  • Using crystal's --production flags in the release process


Swagger Analysis

For Contributors

Now, information can be stored and retrieved through the CodeLocator.instance (singleton instance). It is primarily used for data communication between detectors and analyzers, which helps reduce redundant tasks.

# Code1
locator = CodeLocator.instance
locator.set("swagger-json", filename)
# if filename is 'docs.json'
# Code2
puts locator.get("swagger-json")
# docs.json