/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ValidationError */ export interface ValidationError { /** * * @type {string} * @memberof ValidationError */ message?: string; /** * * @type {string} * @memberof ValidationError */ type?: ValidationErrorTypeEnum; } /** * @export */ export const ValidationErrorTypeEnum = { Tag: 'TAG', Policy: 'POLICY', LicenseThreatGroup: 'LICENSE_THREAT_GROUP', Label: 'LABEL', ParentHierarchy: 'PARENT_HIERARCHY' } as const; export type ValidationErrorTypeEnum = typeof ValidationErrorTypeEnum[keyof typeof ValidationErrorTypeEnum]; /** * Check if a given object implements the ValidationError interface. */ export function instanceOfValidationError(value: object): value is ValidationError { return true; } export function ValidationErrorFromJSON(json: any): ValidationError { return ValidationErrorFromJSONTyped(json, false); } export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError { if (json == null) { return json; } return { 'message': json['message'] == null ? undefined : json['message'], 'type': json['type'] == null ? undefined : json['type'], }; } export function ValidationErrorToJSON(json: any): ValidationError { return ValidationErrorToJSONTyped(json, false); } export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'type': value['type'], }; }