models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldInfo

type FieldInfo struct {
	Name      string      `json:"name"`
	Path      string      `json:"path"`
	Depth     int         `json:"depth"`
	Line      int         `json:"line,omitempty"`
	Arguments []string    `json:"arguments"`
	Children  []FieldInfo `json:"children"`
}

type Finding

type Finding struct {
	RuleID      string            `json:"ruleId"`
	Severity    severity.Severity `json:"severity"`
	Message     string            `json:"message"`
	FilePath    string            `json:"filePath"`
	Line        int               `json:"line,omitempty"`
	Path        string            `json:"path,omitempty"`
	ScoreImpact int               `json:"scoreImpact"`
	Suggestion  string            `json:"suggestion,omitempty"`
	DocsURL     string            `json:"docsUrl,omitempty"`
}

type Report

type Report struct {
	FilePath      string            `json:"filePath"`
	OperationName string            `json:"operationName"`
	RiskScore     int               `json:"riskScore"`
	Severity      severity.Severity `json:"severity"`
	Findings      []Finding         `json:"findings"`
}

Jump to

Keyboard shortcuts

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