opendata-for-all / wapiml

An OpenAPI round-trip tool that leverages model-driven techniques to create, visualize, manage, and generate OpenAPI definitions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hamzaed opened this issue · comments

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"]
            }
          }
        }
      ]
    }