Re: [csaf] [CSAF JSON Schema] limits to field lengths

From
Allan Thomson <>
Date
2018-05-08T03:16:41+00:00
ID
Thread
Re: [csaf] [CSAF JSON Schema] limits to field lengths
Eric – 

 

Lower limit -> It depends on the property. 0 (empty string without null) may be a good lower limit. For example, a string property where the value is unassigned may be set to empty string.

 

Upper limit -> In most cases STIX2 avoided setting an upper limit at all. For certain string enumeration properties the upper limit was set to a reasonably high value for what could be expected in that enumeration. (e.g. 256)

 

Allan

From: <> on behalf of Eric Johnson <>

Date: Monday, May 7, 2018 at 5:53 PM

To: "" <>

Subject: [csaf] [CSAF JSON Schema] limits to field lengths

 

The current specification does not limit the amount of data that goes into properties, such as the document title or the description fields.

 

The lower limit I put in the JSON schema (for just about everything), is simply a non-empty string - 1 or more characters.

 

Is that the right lower limit?

 

What's the upper limit?

 

Eric.