Inline Concepts
Concepts definition can be embedded into a schema file using @concepts
meta-data.
SCHEMA: greeting.service.json
{
"sayHello": {
"name": "string",
"surname": "string"
},
"@concepts": {
"$service+": {
"$parameter*": "$type"
}
}
}
This is a self-validating schema and can be loaded as follows;
const schema = await Schema.load("greeting.service.json");