Open
Show file tree
Hide file tree
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
Expand Up@@ -3707,6 +3707,7 @@ export type { ModelCircle } from './models/ModelCircle';
export type { ModelSquare } from './models/ModelSquare';
export type { ModelThatExtends } from './models/ModelThatExtends';
export type { ModelThatExtendsExtends } from './models/ModelThatExtendsExtends';
export type { ModelWithAdditionalPropertiesEqTrue } from './models/ModelWithAdditionalPropertiesEqTrue';
export type { ModelWithArray } from './models/ModelWithArray';
export type { ModelWitolean } from './models/ModelWitolean';
export type { ModelWithCircularReference } from './models/ModelWithCircularReference';
Expand DownExpand Up@@ -3777,6 +3778,7 @@ export { $ModelCircle } from './schemas/$ModelCircle';
export { $ModelSquare } from './schemas/$ModelSquare';
export { $ModelThatExtends } from './schemas/$ModelThatExtends';
export { $ModelThatExtendsExtends } from './schemas/$ModelThatExtendsExtends';
export { $ModelWithAdditionalPropertiesEqTrue } from './schemas/$ModelWithAdditionalPropertiesEqTrue';
export { $ModelWithArray } from './schemas/$ModelWithArray';
export { $ModelWitolean } from './schemas/$ModelWitolean';
export { $ModelWithCircularReference } from './schemas/$ModelWithCircularReference';
Expand DownExpand Up@@ -4504,6 +4506,25 @@ export type ModelThatExtendsExtends = (ModelWithString & ModelThatExtends & {
"
`;

exports[`v3 should generate: test/generated/v3/models/ModelWithAdditionalPropertiesEqTrue.ts 1`] = `
"/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* This is a model with one property and additionalProperties: true
*/
export type ModelWithAdditionalPropertiesEqTrue = {
/**
* This is a simple string property
*/
prop?: string;
[key: string]: any;
};

"
`;

exports[`v3 should generate: test/generated/v3/models/ModelWithArray.ts 1`] = `
"/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
Expand DownExpand Up@@ -5802,6 +5823,27 @@ export const $ModelThatExtendsExtends = {
"
`;

exports[`v3 should generate: test/generated/v3/schemas/$ModelWithAdditionalPropertiesEqTrue.ts 1`] = `
"/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ModelWithAdditionalPropertiesEqTrue = {
description: \`This is a model with one property and additionalProperties: true\`,
properties: {
prop: {
type: 'string',
description: \`This is a simple string property\`,
},
[key: string]: {
type: 'any',
isRequired: true,
},
},
} as const;
"
`;

exports[`v3 should generate: test/generated/v3/schemas/$ModelWithArray.ts 1`] = `
"/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -2549,6 +2549,17 @@
"type": "object",
"additionalProperties": true
},
"ModelWithAdditionalPropertiesEqTrue": {
"description": "This is a model with one property and additionalProperties: true",
"type": "object",
"properties": {
"prop": {
"description": "This is a simple string property",
"type": "string"
}
},
"additionalProperties": true
},
"FreeFormObjectWithAdditionalPropertiesEqEmptyObject": {
"description": "This is a free-form object with additionalProperties: {}.",
"type": "object",
Expand Down