civisanalytics / swagger-diff

Utility for comparing two Swagger specifications.
BSD 3-Clause "New" or "Revised" License
264 stars 32 forks source link

Parse nested inline objects #51

Closed jeffreyc closed 7 years ago

jeffreyc commented 7 years ago

Adding support for parsing objects like:

    "MyObject": {
      "type": "object",
      "properties": {
        "myProperty": {
          "type": "object",
          "properties": {
            "myNestedProperty": {
              "type": "boolean"
            }
          }
        }
      }
    }

Previously, this would be parsed as MyObject/myProperty (in: body, type: Hash[string, *]). Now this is parsed as MyObject/myProperty/myNestedProperty (in: body, type: boolean).

Fixes #50.