@monokle/validation
Advanced tools
Comparing version 0.28.0 to 0.28.1
@@ -0,1 +1,3 @@ | ||
import { Suppression } from '@monokle/types'; | ||
export type { Suppression, ExternalSuppression, SuppressionStatus, SuppressionKind } from '@monokle/types'; | ||
/** | ||
@@ -60,18 +62,2 @@ * A response as defined by Static Analysis Results Interchange Format. | ||
/** | ||
* A request to suppress a result. | ||
* | ||
* @see https://docs.oasis-open.org/sarif/sarif/v2.1.0/csprd01/sarif-v2.1.0-csprd01.html#_Toc10541171 | ||
*/ | ||
export declare type Suppression = { | ||
guid?: string; | ||
kind: SuppressionKind; | ||
status: SuppressionStatus; | ||
justification?: string; | ||
}; | ||
export declare type ExternalSuppression = Suppression & { | ||
guid: string; | ||
}; | ||
export declare type SuppressionKind = 'inSource' | 'external'; | ||
export declare type SuppressionStatus = 'underReview' | 'accepted' | 'rejected'; | ||
/** | ||
* A suggestion to fix a problem. | ||
@@ -78,0 +64,0 @@ * |
@@ -5,4 +5,4 @@ import kbpPlugin from '../validators/practices/plugin.js'; | ||
import { dynamicImportCustomPluginLoader } from './dynamicImportLoader.js'; | ||
import { DEV_MODE_TOKEN, DevCustomValidator, KubernetesSchemaValidator, MetadataValidator, OpenPolicyAgentValidator, ResourceLinksValidator, SchemaLoader, SimpleCustomValidator, YamlValidator } from '../validators'; | ||
import { RemoteWasmLoader } from "../validators/open-policy-agent/wasmLoader/RemoteWasmLoader.browser"; | ||
import { DEV_MODE_TOKEN, DevCustomValidator, KubernetesSchemaValidator, MetadataValidator, OpenPolicyAgentValidator, ResourceLinksValidator, SchemaLoader, SimpleCustomValidator, YamlValidator, } from '../validators/index.js'; | ||
import { RemoteWasmLoader } from '../validators/open-policy-agent/wasmLoader/RemoteWasmLoader.browser.js'; | ||
export class DefaultPluginLoader { | ||
@@ -9,0 +9,0 @@ _registry = {}; |
@@ -1,3 +0,4 @@ | ||
import { ExternalSuppression, Suppression, SuppressionKind, ValidationResult, ValidationRun } from '../../common/sarif.js'; | ||
import { Suppression, SuppressionKind, ValidationResult, ValidationRun } from '../../common/sarif.js'; | ||
import { Resource } from '../../common/types.js'; | ||
export type { AnnotationsSuppression, FingerprintSuppression } from '@monokle/types'; | ||
export declare type ResourceApi = { | ||
@@ -13,9 +14,1 @@ getResource: () => Resource | undefined; | ||
} | ||
export interface AnnotationsSuppression extends Suppression { | ||
kind: 'inSource'; | ||
status: 'accepted'; | ||
} | ||
export interface FingerprintSuppression extends ExternalSuppression { | ||
kind: 'external'; | ||
fingerprint: string; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FingerPrints, ValidationResult } from '../common/sarif'; | ||
import { FingerPrints, ValidationResult } from '../common/sarif.js'; | ||
export declare function fingerprint(result: ValidationResult): FingerPrints; | ||
@@ -3,0 +3,0 @@ /** |
{ | ||
"name": "@monokle/validation", | ||
"version": "0.28.0", | ||
"version": "0.28.1", | ||
"description": "Kubernetes resource validation", | ||
@@ -5,0 +5,0 @@ "author": "Kubeshop", |
503074
12553