Include constraints in Swagger - Mendix Forum

Include constraints in Swagger

0

Our Data Replicator uses SQL statements to take data from entities in the swagger file and put them in tables on various database platforms. Data volumes can be huge. When a length (text) or scale/precision are not available, very high limits are used such as nvarchar(max) on SQL Server.

Although technically and functionally correct, the use of almost unlimited storage elements in general kills compression options of the traditional database since max can mean gigabytes of data to compress and uncompress, where as it is only a few characters.

Suggested change is to include Swagger standard constraints for length, precision and scale in the generated json.

asked
0 answers