Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update integration format for better handling of multiple asset types #1498

Merged
merged 11 commits into from
Mar 8, 2024
Prev Previous commit
Next Next commit
Update integration type validator for new type
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
  • Loading branch information
Swiddis committed Mar 6, 2024
commit c7ae842514e2ecd4cd7546dc2aa1d37cb9c4fce4
38 changes: 11 additions & 27 deletions server/adaptors/integrations/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,35 +55,19 @@ const templateSchema: JSONSchemaType<IntegrationConfig> = {
},
},
assets: {
type: 'object',
properties: {
savedObjects: {
type: 'object',
properties: {
name: { type: 'string' },
version: { type: 'string' },
data: { type: 'string', nullable: true },
},
required: ['name', 'version'],
nullable: true,
additionalProperties: false,
},
queries: {
type: 'array',
items: {
type: 'object',
properties: {
name: { type: 'string' },
version: { type: 'string' },
language: { type: 'string' },
data: { type: 'string', nullable: true },
},
required: ['name', 'version', 'language'],
},
nullable: true,
type: 'array',
items: {
type: 'object',
properties: {
name: { type: 'string' },
version: { type: 'string' },
extension: { type: 'string' },
type: { type: 'string' },
data: { type: 'string', nullable: true },
},
required: ['name', 'version', 'extension', 'type'],
additionalProperties: false,
},
additionalProperties: false,
},
sampleData: {
type: 'object',
Expand Down