@autorest/modelerfour
Version:
AutoRest Modeler Version Four (component)
13 lines • 603 B
TypeScript
import * as OpenAPI from "@azure-tools/openapi";
export declare function isSchemaBinary(schema: OpenAPI.Schema): boolean;
/**
* @returns true if the schema is a basic string without format.
*/
export declare function isSchemaString(schema: OpenAPI.Schema): boolean;
/**
* Figure out if a schema should be an enum. This is either it is marked itself as an enum or that it has allOf of an enum.
* @param schema Schema.
* @returns Boolean if schema is an enum.
*/
export declare function isSchemaAnEnum(schema: OpenAPI.Schema, spec: OpenAPI.Model): boolean;
//# sourceMappingURL=schema-utils.d.ts.map