UNPKG

@autorest/openapi-to-cadl

Version:

Autorest plugin to scaffold a Typespec definition from an OpenAPI document

7 lines 539 B
import { ChoiceSchema, ObjectSchema, Property, SealedChoiceSchema } from "@autorest/codemodel"; import { CadlDecorator } from "../interfaces"; export declare function getModelDecorators(model: ObjectSchema): CadlDecorator[]; export declare function getPropertyDecorators(property: Property): CadlDecorator[]; export declare function getEnumDecorators(enumeration: SealedChoiceSchema | ChoiceSchema): CadlDecorator[]; export declare function generateDecorators(decorators?: CadlDecorator[]): string; //# sourceMappingURL=decorators.d.ts.map