Namespace: validation

Mapspace.nvdb.schemas. validation

This is the namespace that contains specific NVDB schemas and validations.

Source:
mapspace-nvdb/schemas/validation/bu.nvdb.schemas.validation.jsdoc

Methods


<static> validateChangeset(data, valCxt)

Validates a JSON object with an NVDB changeset against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateChangeset#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Mapspace.nvdb.ChangeSetObject

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/changeset.js
Returns:
Type
boolean

<static> validateDelvisegenskap(data, valCxt)

Validates a JSON object with an NVDB Delvisegenskap against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateDelvisegenskap#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/delvisegenskap.js
Returns:
Type
boolean

<static> validateDelviskorrvegobjekt(data, valCxt)

Validates a JSON object with an NVDB Delviskorrvegobjekt against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateDelviskorrvegobjekt#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/delviskorrvegobjekt.js
Returns:
Type
boolean

<static> validateDelvisoppvegnett(data, valCxt)

Validates a JSON object with an NVDB Delvisoppvegnett against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateDelvisoppvegnett#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/delvisoppvegnett.js
Returns:
Type
boolean

<static> validateDelvisoppvegobjekt(data, valCxt)

Validates a JSON object with an NVDB Delvisoppvegobjekt against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateDelvisoppvegobjekt#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/delvisoppvegobjekt.js
Returns:
Type
boolean

<static> validateDelvisstedfesting(data, valCxt)

Validates a JSON object with an NVDB Delvisstedfesting against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateDelvisstedfesting#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/delvisstedfesting.js
Returns:
Type
boolean

<static> validateEgenskap(data, valCxt)

Validates a JSON object with an NVDB Egenskap against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateEgenskap#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/egenskap.js.js
Returns:
Type
boolean

<static> validateKorrigervegobjekt(data, valCxt)

Validates a JSON object with an NVDB Korrigervegobjekt against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateKorrigervegobjekt#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/korrigervegobjekt.js
Returns:
Type
boolean

<static> validateNyttvegobjekt(data, valCxt)

Validates a JSON object with an NVDB Nyttvegobjekt against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateNyttvegobjekt#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/nyttvegobjekt.js
Returns:
Type
boolean

<static> validateOppdatervegnett(data, valCxt)

Validates a JSON object with an NVDB Oppdatervegnett against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateOppdatervegnett#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/oppdatervegnett.js
Returns:
Type
boolean

<static> validateOppdatervegobjekt(data, valCxt)

Validates a JSON object with an NVDB Oppdatervegobjekt against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateOppdatervegobjekt#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/oppdatervegobjekt.js
Returns:
Type
boolean

<static> validateStedfesting(data, valCxt)

Validates a JSON object with an NVDB Stedfesting against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateStedfesting#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/stedfesting.js
Returns:
Type
boolean

<static> validateVeglenke(data, valCxt)

Validates a JSON object with an NVDB Veglenke against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateVeglenke#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/veglenke.js
Returns:
Type
boolean

<static> validateVegnett(data, valCxt)

Validates a JSON object with an NVDB Vegnett against a validation schema. Returns true if the validation is passed. In this case, the variable Mapspace.nvdb.schemas.validation.validateVegnett#errors contains null. If returns false then the variable contains an array of Mapspace.SchemaValidationError that describe the first errors found.

Parameters:
Name Type Argument Description
data Object

The JSON object to validate.

valCxt Object <nullable>

The context object, if any.

Source:
mapspace-nvdb/schemas/validation/vegnett.js
Returns:
Type
boolean