I'm gonna be flat out: The documentation for JSON Schema is shit. If someone could lead me to a link that shows otherwise, I'll gladly take a look and potentially change my opinion.
I've been spending the past 3 hours trying to get JSON Schema for the following VERY SIMPLE request/response:
When someone pings /api/v1/payers?term=uni&max_results=6 the results they get are:
[
{
"label" : "United",
"value" : "161a016e-8d06-49b9-9ddb-6bdbde248bcc"
},
{
"label" : "United Healthcare",
"value" : "1610426e-8de6-49b9-9ddb-6bfawf8bccew"
}
]
I have the directory docs/schema/schemata. Do I have a payer.json in schemata that details ONE payer? Namely:
{
"label" : "United",
"value" : "161a016e-8d06-49b9-9ddb-6bdbde248bcc"
}
Then where do I define the array? Would that be in schema.json in the schema folder? Or... am I supposed to have a payers.json in schemata. I'm also using the prmd gem.
Nothing I read online leads me to an answer.