I am using OpenAPI specifications and have found reference tags that point to an empty string (empty fragment). Is this a correct reference? If yes, how is this reference to be interpreted? What does it point to, and what value is determined to be correct when the OpenAPI spec is validated?
I have examined the OpenAPI drafts as well as JSON Schema drafts but they do not mention how to handle this, nor do they have any examples or guidance on what constitutes correct behaviour.
Any help is appreciated.
Below is an example... note under the Amount/Amount there is a "$ref": ""
(this example is a portion of Balances specification in the UK Open Banking model)
:
:
"Amount": {
"type": "object",
"required": [
"Amount",
"Currency"
],
"description": "Amount of money of the cash balance.",
"properties": {
"Amount": {
"$ref": ""
},
"Currency": {
"$ref": "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
}
}
}
:
: