@autorest/codemodel
Version:
AutoRest code model library
20 lines • 847 B
TypeScript
import { DeepPartial } from "@azure-tools/codegen";
import { Aspect } from "./aspect";
import { Schema } from "./schema";
/** common base interface for properties, parameters and the like. */
export interface Value extends Aspect {
/** the schema of this Value */
schema: Schema;
/** if the value is marked 'required'. */
required?: boolean;
/** can null be passed in instead */
nullable?: boolean;
/** the value that the remote will assume if this value is not present */
assumedValue?: any;
/** the value that the client should provide if the consumer doesn't provide one */
clientDefaultValue?: any;
}
export declare class Value extends Aspect implements Value {
constructor($key: string, description: string, schema: Schema, initializer?: DeepPartial<Value>);
}
//# sourceMappingURL=value.d.ts.map