opendata-for-all / wapiml

An OpenAPI round-trip tool that leverages model-driven techniques to create, visualize, manage, and generate OpenAPI definitions.
Eclipse Public License 2.0
69 stars 18 forks source link

Enumeration generated from schema objects having allOf contain "null" prefix #3

Closed hamzaed closed 5 years ago

hamzaed commented 5 years ago

When an enum is defined inside allOf, the generated UML enumeration contain the prefix null (e.g., nullStatus.

Definition example:

 "Sub": {
      "allOf": [
        {
          "$ref": "#/definitions/Base"
        },
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": ["status1", "status2"]
            }
          }
        }
      ]
    }