Skip to content

Commit

Permalink
feat: Add deprecated to schema (#237)
Browse files Browse the repository at this point in the history
add-deprecated-to-schema
  • Loading branch information
swetapadmanabhan authored May 13, 2024
1 parent f09ecd6 commit e9a3310
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ export type SchemaMixin = {
$ref: string;
};
export type SchemaMetadata = { entity_event: boolean };

export type SchemaDeprecated = { $ref: string; message: string };
export interface Schema<
TEntityTypeMap = DefaultEntityTypeMap,
TEntityType extends keyof TEntityTypeMap = keyof TEntityTypeMap,
Expand All @@ -235,6 +237,7 @@ export interface Schema<
alias_for?: string | Data;
$mixin?: SchemaMixin;
metadata?: SchemaMetadata;
deprecated?: SchemaDeprecated;
}
export interface QueryOptions {
abortController?: AbortController;
Expand Down

0 comments on commit e9a3310

Please sign in to comment.