-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Epic:ZDTmigrationsZero downtime migrationsZero downtime migrationsFeature:Saved ObjectsTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//
Description
We need to port an equivalent to the existing schemas type property for model versions:
kibana/packages/core/saved-objects/core-saved-objects-server/src/saved_objects_type.ts
Lines 73 to 80 in 7136039
| /** | |
| * An optional schema that can be used to validate the attributes of the type. | |
| * | |
| * When provided, calls to {@link SavedObjectsClient.create | create} will be validated against this schema. | |
| * | |
| * See {@link SavedObjectsValidationMap} for more details. | |
| */ | |
| schemas?: SavedObjectsValidationMap | (() => SavedObjectsValidationMap); |
We should probably do that by adding a schema property to SavedObjectsModelVersion
kibana/packages/core/saved-objects/core-saved-objects-server/src/model_version/model_version.ts
Lines 20 to 25 in 7136039
| export interface SavedObjectsModelVersion { | |
| /** | |
| * The {@link SavedObjectsModelChange | changes} associated with this version. | |
| */ | |
| modelChange: SavedObjectsModelChange; | |
| } |
So that the schema is more explicitly coupled with a given version.
Should probably be optional as it already was before model versions
rudolf and afharo
Metadata
Metadata
Assignees
Labels
Epic:ZDTmigrationsZero downtime migrationsZero downtime migrationsFeature:Saved ObjectsTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//