Forum Discussion

sudhu's avatar
2 months ago

[Open API 3.0.*]Does fraction of schema can be referred to the other schema

"components": {

"schemas":{

"email": {

        "title": "Email ",

        "type": "object",

        "description": "Email record.",

        "allOf": [

          {

            "$ref": "#/components/schemas/email-event/allOf/0/allOf/0"

          }

        ]

},

"email-event": {
        "title": "",
        "description": "",
        "type": "object",
        "allOf": [
          {
            "title": "Email Event",
            "description": "",
            "type": "object",
            "allOf": [
              {
                "title": "Audit",
                "description": "Audit information",
                "type": "object",
                "properties": {
                  "created": {
                    "type": "string",
                    "format": "date-time",
                    "example": "2017-01-02T02:00:00Z"
                  }

 

Here “Email” schema is using the fractional part of “email-event” schema. Does This is a valid $ref ?