Class StacValidator
Stac Validator.
Inheritance
System.Object
StacValidator
Namespace: Stac.Schemas
Assembly: DotNetStac.dll
Syntax
public class StacValidator : object
Constructors
| Improve this Doc View SourceStacValidator(JSchemaUrlResolver)
Initializes a new instance of the StacValidator class.
Declaration
public StacValidator(JSchemaUrlResolver jsonSchemaUrlResolver)
Parameters
Type | Name | Description |
---|---|---|
JSchemaUrlResolver | jsonSchemaUrlResolver | Json schema resolver. |
Methods
| Improve this Doc View SourceValidateJson(String)
Validate a json string against its STAC schema specification
Declaration
public bool ValidateJson(string jsonstr)
Parameters
Type | Name | Description |
---|---|---|
System.String | jsonstr | json string |
Returns
Type | Description |
---|---|
System.Boolean | true when valid |