Hey
Wondering if you can help please. I’d like to specify a request schema which references another json schema for example:
{
"$id": "mySchema",
"type": "object",
"properties": {
"footer": {
"type": "array",
"items": {
"$ref": "reference another json file/model somehow??"
}
}
}
}
In $ref
I’l like to reference another json schema file or another model which I have already registered with serverless
Currently, the only way I could see to do this is using definitions
, but the issue with that is definitions
need to live in the same json schema file, whereas I’d like to point to another file all together
I could not find an example of how to do this on the documentation page: https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#request-schema-validators