belgif / rest-guide

REST Guidelines of Belgian government institutions
https://www.belgif.be/specification/rest/api-guide/
Apache License 2.0
24 stars 4 forks source link

Allow some use of 'title' in schemas #176

Open pvdbosch opened 5 months ago

pvdbosch commented 5 months ago

Current rule: https://www.belgif.be/specification/rest/api-guide/#rule-oas-descr

The title property MUST NOT be used because it hides the actual data type name in visualization tools like Swagger UI.

However, title property is useful in two cases:

So I propose to change this to:

For schemas defined under components, the title property MUST NOT override the name of the schema because it would hide the actual schema name in visualization tools like Swagger UI.