Closed rotty3000 closed 4 months ago
CRDs may use the additionalProperties property to indicate that the property is a map (a.k.a. Dictionary, HashMap, Associative Array).
additionalProperties
e.g.:
settings: additionalProperties: type: string description: Provider settings. type: object
This means, the property settings is a map whose values are of type string.
settings
string
Ref: Dictionaries, HashMaps and Associative Arrays
In TypeScript this should result in:
settings: {[key: string]: string}
PR forthcoming.
https://www.npmjs.com/package/crdtoapi/v/0.0.17 :tada: :cake:
CRDs may use the
additionalProperties
property to indicate that the property is a map (a.k.a. Dictionary, HashMap, Associative Array).e.g.:
This means, the property
settings
is a map whose values are of typestring
.Ref: Dictionaries, HashMaps and Associative Arrays
In TypeScript this should result in:
PR forthcoming.