From aebdb2b8f2856261b602ffda117e3575dd2420f1 Mon Sep 17 00:00:00 2001 From: asyncapi-bot <61865014+asyncapi-bot@users.noreply.github.com> Date: Wed, 16 Jun 2021 16:06:10 +0200 Subject: [PATCH] chore(release): v0.10.0 --- API.md | 42 ++++++++++++++++++++++++++++++++++++++---- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/API.md b/API.md index 3a7a88fbbc..93662e9bf5 100644 --- a/API.md +++ b/API.md @@ -53,6 +53,9 @@
interpretConst(schema, model)

Interpreter function for JSON Schema draft 7 const keyword.

+
interpretDependencies(schema, model)
+

Interpreter function for JSON Schema draft 7 dependencies keyword.

+
interpretEnum(schema, model)

Interpreter function for JSON Schema draft 7 enum keyword

@@ -83,8 +86,11 @@
ensureModelsAreSplit(model, iteratedModels)

Split up all models which should and use ref instead.

-
isModelObject()
-

check if CommonModel is a separate model or a simple model.

+
isEnum(model)
+

Check if CommonModel is an enum

+
+
isModelObject(model)
+

Check if CommonModel is a separate model or a simple model.

inferTypeFromValue(value)

Infers the JSON Schema type from value

@@ -737,6 +743,18 @@ Interpreter function for JSON Schema draft 7 const keyword. | schema | | model | + + +## interpretDependencies(schema, model) +Interpreter function for JSON Schema draft 7 dependencies keyword. + +**Kind**: global function + +| Param | +| --- | +| schema | +| model | + ## interpretEnum(schema, model) @@ -856,12 +874,28 @@ Split up all models which should and use ref instead. | model | to ensure are split | | iteratedModels | which are already split | + + +## isEnum(model) +Check if CommonModel is an enum + +**Kind**: global function + +| Param | +| --- | +| model | + -## isModelObject() -check if CommonModel is a separate model or a simple model. +## isModelObject(model) +Check if CommonModel is a separate model or a simple model. **Kind**: global function + +| Param | +| --- | +| model | + ## inferTypeFromValue(value) diff --git a/package-lock.json b/package-lock.json index 14ced2ac43..ecee4d9e20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/modelina", - "version": "0.9.0", + "version": "0.10.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 85ff752ae0..38ee03defa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/modelina", - "version": "0.9.0", + "version": "0.10.0", "description": "The Model SDK for generating data models", "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/modelina",