Show / Hide Table of Contents

Class Validator

Contains all JSON validation methods.

Inheritance
object
Validator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CycloneDX.Json
Assembly: CycloneDX.Core.dll
Syntax
public static class Validator

Methods

| Edit this page View Source

Validate(string)

Validate the string contents represent a valid CycloneDX JSON document.

Declaration
public static ValidationResult Validate(string jsonString)
Parameters
Type Name Description
string jsonString
Returns
Type Description
ValidationResult
| Edit this page View Source

Validate(string, SpecificationVersion)

Validate the string contents represent a valid CycloneDX JSON document.

Declaration
public static ValidationResult Validate(string jsonString, SpecificationVersion specificationVersion)
Parameters
Type Name Description
string jsonString
SpecificationVersion specificationVersion
Returns
Type Description
ValidationResult
| Edit this page View Source

ValidateAsync(Stream, SpecificationVersion)

Validate the stream contents represent a valid CycloneDX JSON document.

Declaration
public static Task<ValidationResult> ValidateAsync(Stream jsonStream, SpecificationVersion specificationVersion)
Parameters
Type Name Description
Stream jsonStream
SpecificationVersion specificationVersion
Returns
Type Description
Task<ValidationResult>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX