Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7369

Comment on: "manual/core/document-validation.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server

    Description

      How do I validate a model, that contains subtype as other complexe structure.
      for a db entry that would be :
      {
      publisher: {
      publisherId:

      { type: String, label: 'PublisherId, like HLC or MSG' }

      ,
      scoreId:

      { type: String, label: 'Publisher specified id' }

      ,
      identity:

      { type: Object, label: 'complete identity data from publisher', blackbox: true }

      },
      renderJob:

      { type: renderJobSchema, label: 'Information about the rendering job', optional: true }

      }

      Let's say I want a validator to validate publisher.publisherID, how do I do that if i only have one level of validation in the $or value of the validator.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 1 day ago