title: JSON Schema v4 "required" in nested object
body: <p>I tried searching, but I'm not quite sure how to put this in words! The point of confusion is how "required" works in JSON schema v4 when there are <strong>nested key values with the <em>same name</em></strong>. </p>
  
  <p>For example, this schema:</p>
  
  <pre><code>{
      "Root": {
          "type": ["array", "null"],
          "items": {
              "type": "object",
              "properties": {
                  "LevelOne": {
                      "required": ["id", "name", "LevelOneRepeat"],
                      "id": {
                          "type": "string"
                          },
                      "name": {
                          "type": "string"
                          },
                      "LevelOneRepeat": {
                          "type": ["array", "null"],
                          "items": {
                              "type": "object",
                              "properties": {
                                  "required": ["id", "name"],
                                  "id": {
                                      "type": "string"
                                      },
                                  "name": {
                                      "type": "string"
                                  }
                              }
                          }
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Inside LevelOne, I have a required for "id", "name", and "LevelOneRepeat". However, inside LevelOneRepeat, I also have a required for "id" and "name". </p>
  
  <p>Does required only check for elements in the same level, or also all child elements? Do I need to include the required inside LevelOneRepeat if the key values required (same name) are already listed in the level above?</p>
  
  <p>I tested my JSON with my schema, but I might've messed up my code somewhere as no required are working anymore. </p>