Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::DB::ResultSet::ValidationState

SOURCE

https://github.com/joyent/conch-api/blob/master/lib/Conch/DB/ResultSet/ValidationState.pm

DESCRIPTION

Interface to queries involving validation states.

METHODS

with_legacy_validation_results

Generates a resultset that adds the legacy_validation_results to the validation_state(s) in the resultset (to be rendered as a flat list of results grouped by validation_state).

with_validation_results

Generates a resultset that adds the validation_results to the validation_state(s) in the resultset (to be rendered as a list json_schemas, each with a list of errors).

LICENSING

Copyright Joyent, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.