While object is technically a primitive value based on TYPES in transforms/utils/validateTypes.js, users of this library will want to use typedef to represent objects.
For what it's worth, normally in JSDoc dictionary/record type objects are represented as:
What kind of change does this PR introduce? (check at least one)
Description:
Add support for using primitive values with
Dictionary
special type. For example to represent object with any number of string keys and string values:Official documentation on dictionaries in OpenAPI: https://swagger.io/docs/specification/data-models/dictionaries/
While
object
is technically a primitive value based onTYPES
intransforms/utils/validateTypes.js
, users of this library will want to usetypedef
to represent objects.For what it's worth, normally in JSDoc dictionary/record type objects are represented as: