AppStream.Validator
Description: Reference for AppStream.Validator

### Class

# AppStreamValidator

since: 1.0

#### Description

    class AppStream.Validator : GObject.Object
    {
      /* No available fields */
    }

No description available.

Available since: 1.0

#### Hierarchy

None

#### Ancestors

- GObject

#### Constructors

###### as_validator_new

Creates a new `AsValidator`.

since: 1.0

#### Instance methods

###### as_validator_add_override

Override the severity of a selected tag. For most tags, the severity can not be lowered to a value that makes a validation that would otherwise fail pass (so e.g. an ERROR can not become an INFO). Some tags are explicitly allowed to have their severity lowered to enable validation of e.g. incomplete metadata during development. Increasing the severity of any tag is always allowed.

since: 0.15.4

###### as_validator_add_release_bytes

Add release metadata explicitly from bytes.

since: 0.16.0

###### as_validator_add_release_file

Add a release metadata file to the validation process.

since: 0.16.0

###### as_validator_check_success

Check the current registered values again and return `TRUE` if no issues were found that would make the previously validated files fail validation.

since: 1.0

###### as_validator_clear_release_data

Clear all release information that was explicitly added to the validation process.

since: 0.16.0

###### as_validator_get_allow_net

No description available.

since: 1.0

###### as_validator_get_issue_files_count

Get the number of files for which issues have been found.

since: 0.16.0

###### as_validator_get_issues

Get a list of found metadata format issues.

since: 1.0

###### as_validator_get_issues_per_file

Get a hash table of filenames mapped to lists of issues. This is useful if validation was requested for multiple files and a list of issues per-file is desired without prior explicit sorting.

since: 0.12.8

###### as_validator_get_report_yaml

No description available.

since: 1.0

###### as_validator_get_strict

No description available.

since: 0.15.4

###### as_validator_get_tag_explanation

Get the explanatory text for a given issue tag.

since: 1.0

###### as_validator_get_tag_severity

Get the severity for a given issue tag.

since: 1.0

###### as_validator_get_tags

Get an array of all tags known to the validator.

since: 1.0

###### as_validator_set_allow_net

If set to `TRUE`, the validator will be allowed to connect to the internet to e.g. check URLs for validity.

since: 1.0

###### as_validator_set_strict

Enable or disable strict mode. In strict mode, any found issue will result in a failed validation (except for issues of “pedantic” severity). Otherwise, only a “warning” or “error” will cause the validation to fail.

since: 0.15.4

###### as_validator_validate_bytes

Validate AppStream XML data from a byte array. Remember to run %as_validator_clear_issues if you do not want previous validation runs to affect the outcome of this validation.

since: 0.14.0

###### as_validator_validate_data

Validate AppStream XML data.

since: 1.0

###### as_validator_validate_file

Validate an AppStream XML file.

since: 1.0

###### as_validator_validate_tree

Validate a full directory tree for issues in AppStream metadata.

since: 1.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

#### Class structure

    struct AppStreamValidatorClass {
      GObjectClass parent_class;
      void (* _as_reserved1) (
    void
      );
      void (* _as_reserved2) (
    void
      );
      void (* _as_reserved3) (
    void
      );
      void (* _as_reserved4) (
    void
      );
      void (* _as_reserved5) (
    void
      );
      void (* _as_reserved6) (
    void
      );

    }

No description available.

###### Class members

`parent_class: GObjectClass`
  No description available.
`_as_reserved1: void (* _as_reserved1) ( void )`
  No description available.
`_as_reserved2: void (* _as_reserved2) ( void )`
  No description available.
`_as_reserved3: void (* _as_reserved3) ( void )`
  No description available.
`_as_reserved4: void (* _as_reserved4) ( void )`
  No description available.
`_as_reserved5: void (* _as_reserved5) ( void )`
  No description available.
`_as_reserved6: void (* _as_reserved6) ( void )`
  No description available.