stig-manager
stig-manager copied to clipboard
Add more comprehensive constraints, common typedefs, to OAS spec
- Add more keywords to better describe expected requests:
- add uniqueItems: true and minItems: 1 for arrays where appropriate
- restrict string lengths where currently left unbound
- Define common types for items that appear in multiple schemas:
- ie. define a
StatusTexttype to replace instances where thetextproperty of astatusobject is definedString512Nullablein-line. - same for ruleId, benchmarkId, etc.
- BenchmarkId is already defined (but as a
string. look to database columns for size reference), and it isn't actually used in any schema definitions. - Some definitions conflict... Rule title is defined as
StringMaxin some spots andstringin others, but in the db it's varchar(1000)
- ie. define a
Closed by #1257