diff --git a/API.md b/API.md index 93662e9bf5..65f9500aa9 100644 --- a/API.md +++ b/API.md @@ -40,9 +40,21 @@ +## Members + +
+
DefaultPropertyNames
+

Default property names for different aspects of the common model

+
+
+ ## Functions
+
getUniquePropertyName(rootModel, propertyName)
+

Recursively find the proper property name for additionalProperties

+

This function ensures that the property name for additionalProperties is unique

+
interpretAdditionalProperties(schema, model, interpreter, interpreterOptions)

Interpreter function for JSON Schema draft 7 additionalProperties keyword.

@@ -701,6 +713,26 @@ Sets the logger to use for the model generation library | --- | --- | | logger | to add | + + +## DefaultPropertyNames +Default property names for different aspects of the common model + +**Kind**: global variable + + +## getUniquePropertyName(rootModel, propertyName) +Recursively find the proper property name for additionalProperties + +This function ensures that the property name for additionalProperties is unique + +**Kind**: global function + +| Param | +| --- | +| rootModel | +| propertyName | + ## interpretAdditionalProperties(schema, model, interpreter, interpreterOptions) diff --git a/package-lock.json b/package-lock.json index fb0f49d202..b2b23bafb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/modelina", - "version": "0.10.1", + "version": "0.11.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b400fc23bd..7ade8c035f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/modelina", - "version": "0.10.1", + "version": "0.11.0", "description": "The Model SDK for generating data models", "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/modelina",