From 651eaeb5f03802e432e2159cdbf539d35370c8c5 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 10 Jan 2024 02:51:47 +0100 Subject: [PATCH] chore(release): v3.0.0-next.9 (#1734) Co-authored-by: asyncapi-bot --- package-lock.json | 4 ++-- package.json | 2 +- .../typescript/preset/MarshallingPreset.spec.ts | 8 +++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index b716fa5ee3..9168732fdc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/modelina", - "version": "3.0.0-next.8", + "version": "3.0.0-next.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/modelina", - "version": "3.0.0-next.8", + "version": "3.0.0-next.9", "license": "Apache-2.0", "dependencies": { "@apidevtools/json-schema-ref-parser": "^9.0.9", diff --git a/package.json b/package.json index 1cedddfb22..ee53a73612 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/modelina", - "version": "3.0.0-next.8", + "version": "3.0.0-next.9", "description": "Library for generating data models based on inputs such as AsyncAPI, OpenAPI, or JSON Schema documents", "license": "Apache-2.0", "homepage": "https://www.modelina.org", diff --git a/test/generators/typescript/preset/MarshallingPreset.spec.ts b/test/generators/typescript/preset/MarshallingPreset.spec.ts index 920c9cd9bc..fa1b2d90f3 100644 --- a/test/generators/typescript/preset/MarshallingPreset.spec.ts +++ b/test/generators/typescript/preset/MarshallingPreset.spec.ts @@ -14,11 +14,9 @@ const doc = { }, $id: 'Test', type: 'object', - additionalProperties: { - oneOf: [ - {$ref: '#/definitions/NestedTest'}, - {type: 'string'} - ] }, + additionalProperties: { + oneOf: [{ $ref: '#/definitions/NestedTest' }, { type: 'string' }] + }, required: ['string prop'], properties: { 'string prop': { type: 'string' },