- check if it is possible to define a RAML file without any endpoints just to declare traits and imports, the goal is to generate DTOs and reusable traits.
- check if it is possible to extend or inherit JSON schemas. if not demonstrate how to include or wrap JSON schemas.
Unfortunately, it is not possible to declare RAML file without any endpoint, one endpoint with at least one method should exist.
It is possible to extend JSON schemas. The detailed information on how to do it described below.
Let's assume we have following raml file
The definition of the book collection looks similar to other collections used in project
Here, for the reference field I have used "bookChild.json" file, which is a child of other json file
The main point is to use
After project build we will have following models: