iptc / newsinjson

Home of the IPTC ninjs standard
https://iptc.org/standards/ninjs/
Other
35 stars 9 forks source link

The type of the urgency filed #171

Open himslm01 opened 6 months ago

himslm01 commented 6 months ago

The urgency field is defined as a “number” type with values from 1 to 9:

"urgency": { 
    "title": "Urgency", 
    "description": "The editorial urgency of the content. Values from 1 to 9. 1 represents the highest urgency, 9 the lowest. nar:urgency", 
    "type": "number" 
}, 

The number type in JSON schema means decimals.

So does this mean the numbers can be from 1.0 up to 9.0, including 3.14159...

Or should the schema instead define the type as integer?

https://json-schema.org/understanding-json-schema/reference/numeric

bquinn commented 1 month ago

Reviving this issue from April: you're right, but fixing it is a breaking change.

We are considering making the next version 3.0 so perhaps we can make this change for urgency and other properties such as height, width, sizeinbytes, averagebitrate, samplerate, audiochannels, audiobitrate, framerate, printsize, maxbitrate, port, minlatency, bitrate, gop (some of these are not yet released and may be removed in the final version of the next release of ninjs)

Duration probably should stay as "number" because the duration of an audio or video clip may requires fractions of seconds.