I am trying to refer to schema located in a sub folder with $ref, I wanted to put as optional a couple of other schema files into my root schema file. I have seen about cross file reference and in file referencing with $ref, but wanted to check if an entire schema file/files can be referenced by folder. ie. for eg:
./subfolder/{...}.json
contains a list of schema files and in my root schema file i would like to reference them like
"$ref": "./subfolder/"
I am assuming, I could expand a schema file infinitely using a format like this. Thank for your answer and time.