@protocolnebula/ts-openapi-generator
Version:
Build API and models from Swagger/OpenAPI to use in any project type
40 lines • 1.13 kB
TypeScript
import { USED_IN_ATTRIBUTE } from './entities';
import { ModelModel } from './model.model';
export declare class ModelAttributessModel {
name: string;
usedIn: USED_IN_ATTRIBUTE;
description?: string;
example?: string;
deprecated?: boolean;
default?: any;
isOptional: boolean;
isArray: boolean;
/**
* Must be increased for each array level
*/
arrayLevels: number;
private _typeURI;
private _model;
get typeURI(): string;
set typeURI(typeURI: string);
get hasComments(): boolean;
/**
* Return the type parsed, (class or primitive)
*/
get type(): string;
get typeIsPrimitive(): boolean;
get typeNotPrimitive(): boolean;
/**
* Get the path to the file if is not a primitive
*/
get fileName(): string | null;
get model(): ModelModel;
set model(model: ModelModel);
/**
* Return a fake array with "arrayLevels" elements to print it in mustache.js
*/
get arrayLevelsRepeater(): any[];
constructor(name: string);
toString(): string;
}
//# sourceMappingURL=model-attributes.model.d.ts.map