Add CoreValidationSchema online documentation
plus validation module docs
This commit is contained in:
parent
640b8ce6a2
commit
206a6220cc
4 changed files with 28 additions and 2 deletions
|
@ -25,6 +25,7 @@ Use these to access CORE's modules.
|
|||
- [`sms`](/reference/sms)
|
||||
- [`erm`](/reference/erm) (formerly `edl`)
|
||||
- [`storage`](/reference/storage)
|
||||
- [`validation`](/reference/validation)
|
||||
|
||||
## Constants
|
||||
### *Array[String]* <u>modules</u> = *[ "logger", "misc", "sms", "logui", "erm", "storage" ]*
|
||||
|
|
13
docs/docs/reference/validation.md
Normal file
13
docs/docs/reference/validation.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
sidebar_position: 10
|
||||
description: Allows for data validation.
|
||||
---
|
||||
|
||||
# `Validation (module)`
|
||||
|
||||
|
||||
## Functions
|
||||
### *CoreValidationSingle* <u>get_single</u>(*anything you like* <u>data</u>, *Node* <u>parent</u>)
|
||||
Returns a new [`CoreValidationSingle`](/reference/validationsingle).
|
||||
### *CoreValidationSchema* <u>get_schema</u>(*Dictionary* <u>schema</u>, *Node* <u>parent</u>)
|
||||
Returns a new [`CoreValidationSchema`](/reference/validationschema).
|
12
docs/docs/reference/validationschema.md
Normal file
12
docs/docs/reference/validationschema.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
sidebar_position: 12
|
||||
description: Used for validating multiple CoreValidationSingles.
|
||||
---
|
||||
|
||||
# `CoreValidationSchema`
|
||||
Validates multiple `CoreValidationSingle`s at once.
|
||||
|
||||
|
||||
## Functions
|
||||
### *Array[String]* <u>evaluate</u>()
|
||||
Evaluates all singles and returns the names of all failed singles in an array.
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
sidebar_position: 10
|
||||
sidebar_position: 11
|
||||
description: Used for validating data.
|
||||
---
|
||||
|
||||
# `CoreValidationSingle`
|
||||
Provides the default configuration for the CORE Framework.
|
||||
Validates some data against a set of predefined rules.
|
||||
|
||||
|
||||
## Variables
|
||||
|
|
Loading…
Reference in a new issue