stig-manager icon indicating copy to clipboard operation
stig-manager copied to clipboard

Add more comprehensive constraints, common typedefs, to OAS spec

Open cd-rite opened this issue 2 years ago • 1 comments

  • 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 StatusText type to replace instances where the text property of a status object is defined String512Nullable in-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 StringMax in some spots and string in others, but in the db it's varchar(1000)

cd-rite avatar Oct 09 '23 17:10 cd-rite

Closed by #1257

csmig avatar Apr 23 '24 18:04 csmig