0

I have a specific case while designing schema for my json. In below Json schema design, I have 4 properties

  1. siteMapUrls
  2. s3SeedUrl
  3. s3SiteMapUrl
  4. seedUrlConnections

Out of these 4 properties, any one is mandatory, how shall I use required field in this case? what should be the content of required field?

      {
        "connectionConfiguration": {
          "type": "object",
          "properties": {
            "siteMapUrls":{
              "type": "string"
            },
            "s3SeedUrl": {
              "type": "string"
            },
            "s3SiteMapUrl": {
              "type": "string"
            },
            "seedUrlConnections": {
              "type": "string"
            }
          },
          "required": [
            "**???????????**"
          ]
      
        }
      }
Gunwant
  • 949
  • 1
  • 14
  • 29

0 Answers0