hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/validation.json
{
"name": "hydra.core.validation",
"metadata": {
"description": "Framework types for configurable validation: profiles classify checks as errors or warnings, and results accumulate findings up to caller-specified bounds.",
"comments": [],
"seeAlso": [],
"provisions": []},
"dependencies": [{"module": "hydra.core.model"}],
"definitions": [
{
"type": {
"name": "hydra.core.validation.ValidationProfile",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"record": [
{
"name": "errorRules",
"type": {
"annotated": {
"body": {"set": {"variable": "hydra.core.model.Name"}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {
"literal": {
"string": "The set of fully qualified rule names whose findings are treated as errors. Each name has the form 'hydra.core.error.<package>.<UnionType>.<variant>', e.g. 'hydra.core.error.model.InvalidTermError.duplicateBinding'."}}}]}}}},
{
"name": "warningRules",
"type": {
"annotated": {
"body": {"set": {"variable": "hydra.core.model.Name"}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {
"literal": {
"string": "The set of fully qualified rule names whose findings are treated as warnings. Same name format as errorRules."}}}]}}}},
{
"name": "maxErrors",
"type": {
"annotated": {
"body": {"literal": {"integer": "int32"}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {
"literal": {
"string": "Hard upper bound on collected errors. Validation terminates as soon as the errors list reaches this length. A value of 1 reproduces the legacy 'first error wins' behaviour."}}}]}}}},
{
"name": "maxWarnings",
"type": {
"annotated": {
"body": {"literal": {"integer": "int32"}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {
"literal": {
"string": "Soft upper bound on collected warnings. Once the warnings list reaches this length, further warning matches are silently dropped, but validation does not terminate; it continues until maxErrors is reached or the traversal completes."}}}]}}}}]},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {
"literal": {
"string": "Configuration for a validation pass: which check rules are active, how each is classified, and the upper bounds on collected findings. A check whose rule name appears in neither set is never evaluated. Errors hard-stop the traversal once maxErrors is reached; warnings only stop being collected once maxWarnings is reached, never causing termination."}}}]}}},
"constraints": []}}},
{
"type": {
"name": "hydra.core.validation.ValidationResult",
"body": {
"variables": [],
"body": {
"annotated": {
"body": {
"forall": {
"parameter": "e",
"body": {
"record": [
{
"name": "errors",
"type": {
"annotated": {
"body": {"list": {"variable": "e"}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "Findings classified as errors, in traversal order, bounded by the profile's maxErrors."}}}]}}}},
{
"name": "warnings",
"type": {
"annotated": {
"body": {"list": {"variable": "e"}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {"literal": {"string": "Findings classified as warnings, in traversal order, bounded by the profile's maxWarnings."}}}]}}}}]}}},
"annotation": {
"map": [
{
"key": {"variable": "description"},
"value": {
"literal": {
"string": "The outcome of a validation pass: an ordered list of error findings and an ordered list of warning findings, each parameterized by the finding payload type. The pass is considered successful when 'errors' is empty; warnings are informational and do not affect that judgement."}}}]}}},
"constraints": []}}}]}