From 94949dc151826e357f3791328a90f248fff0eb94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Thu, 9 Mar 2023 17:03:46 +0100 Subject: [PATCH] Adding the SimpleParameter to the snapshot --- test/__snapshots__/index.spec.ts.snap | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/__snapshots__/index.spec.ts.snap b/test/__snapshots__/index.spec.ts.snap index eefa4ffe..6d744292 100644 --- a/test/__snapshots__/index.spec.ts.snap +++ b/test/__snapshots__/index.spec.ts.snap @@ -4903,6 +4903,18 @@ export type SimpleInteger = number; " `; +exports[`v3 should generate: ./test/generated/v3/models/SimpleParameter.ts 1`] = ` +"/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +/** + * This is a reusable parameter + */ +export type SimpleParameter = string; +" +`; + exports[`v3 should generate: ./test/generated/v3/models/SimpleReference.ts 1`] = ` "/* istanbul ignore file */ /* tslint:disable */ @@ -6231,6 +6243,17 @@ export const $SimpleInteger = { " `; +exports[`v3 should generate: ./test/generated/v3/schemas/$SimpleParameter.ts 1`] = ` +"/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $SimpleParameter = { + type: 'string', + description: \`This is a reusable parameter\`, +} as const; +" +`; + exports[`v3 should generate: ./test/generated/v3/schemas/$SimpleReference.ts 1`] = ` "/* istanbul ignore file */ /* tslint:disable */