garden.lexicon.validateSet

Validate a set of lexicon schemas and check records against the first one. References resolve in order from the same schema, the other pasted schemas, then lexicons Lexicon Garden has indexed. At most 50 schemas, 100 records and 1 MiB of body.

Repository @lexicon.garden did:plc:akhgi4ekkeaupiqsis6g2gqg namespace authority
Details · procedure
Kindprocedure
Authoritylexicon.garden
Commit rev3mzw7lcz7732k
Indexed

Procedure

procedure · POST

Input

application/json
Reference

records

array

Records to check against the first schema's main record.

  • maxLength: 100
itemsunknown

schemas

requiredarray

Lexicon documents. Records are checked against the first; the rest resolve its references.

  • minLength: 1
  • maxLength: 50
itemsunknown

Output

application/json

records

requiredarray
itemsref
Reference

references

requiredarray
itemsref
Reference

schemas

requiredarray
itemsref
Reference

Errors

InvalidRequest

Too many schemas or records, or none.

#flags

object

Properties

Accept blobs with a cid field.

  • default: false

Accept datetimes beyond strict RFC 3339.

  • default: false

Count references that are neither pasted nor indexed as valid.

  • default: false

#recordError

object

Properties

message

requiredstring
  • maxLength: 2000

path

requiredstring
  • maxLength: 1024

#recordResult

object

Properties

errors

requiredarray
itemsref
Reference

index

requiredinteger
  • minimum: 0

type

string
  • maxLength: 512

valid

requiredboolean

#referenceResult

object

Properties

ref

requiredstring

The full nsid#def form, or the NSID alone for a main definition.

  • maxLength: 512

source

requiredstring
  • knownValues: this-schema | pasted | index | unresolved | skipped

#schemaResult

object

Properties

defCount

requiredinteger
  • minimum: 0

id

string · nsid

index

requiredinteger
  • minimum: 0

issues

requiredarray
itemsstring
  • maxLength: 2000

mainType

string
  • maxLength: 32

valid

requiredboolean